运行 cypress 测试时 github actions 错误
我在 cypress 的 github 操作中收到以下错误,
这是应用程序的 package.json 。
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/plugin-syntax-typescript": "^7.12.13",
"@cypress/code-coverage": "^3.9.12",
"@cypress/instrument-cra": "^1.1.1",
"@typescript-eslint/eslint-plugin": "^5.7.0",
"@typescript-eslint/parser": "^5.7.0",
"@typescript-eslint/typescript-estree": "^5.7.0",
"cypress": "7.6.0",
"cypress-dark": "^1.7.14",
"cypress-file-upload": "^5.0.7",
"cypress-movie": "^3.0.20",
"cz-conventional-changelog": "^3.2.0",
"eslint": "7.32.0",
"eslint-config-airbnb": "^18.1.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.27.1",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-typescript": "^0.14.0",
"jest-watch-typeahead": "^0.6.5",
"progress-bar-webpack-plugin": "^2.1.0",
"webpack-bundle-analyzer": "^4.5.0"
},
令人困惑的部分是在 package.json 中,它是 cypress 7.6.0,但在 github actions CI 日志中它显示为 9.5.1。
知道问题是什么吗?
工作流程, https://gist.github.com/bonyfusbouvet/9c264f0fa03170744275131154de5c4a
I am getting the following error in github actions for cypress,
This is app's package.json.
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.13.0",
"@babel/plugin-syntax-typescript": "^7.12.13",
"@cypress/code-coverage": "^3.9.12",
"@cypress/instrument-cra": "^1.1.1",
"@typescript-eslint/eslint-plugin": "^5.7.0",
"@typescript-eslint/parser": "^5.7.0",
"@typescript-eslint/typescript-estree": "^5.7.0",
"cypress": "7.6.0",
"cypress-dark": "^1.7.14",
"cypress-file-upload": "^5.0.7",
"cypress-movie": "^3.0.20",
"cz-conventional-changelog": "^3.2.0",
"eslint": "7.32.0",
"eslint-config-airbnb": "^18.1.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.27.1",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-typescript": "^0.14.0",
"jest-watch-typeahead": "^0.6.5",
"progress-bar-webpack-plugin": "^2.1.0",
"webpack-bundle-analyzer": "^4.5.0"
},
The confusing part is in the package.json it is cypress 7.6.0 but in github actions CI logs it says 9.5.1.
Any idea what the issue is?
workflow,
https://gist.github.com/bonyfusbouvet/9c264f0fa03170744275131154de5c4a
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否将 package-lock.json 文件视为忽略文件,那么这可能是尝试安装最新 Cypress 的原因。
Do you consider
package-lock.json
file as ignore file, then it may be a reason to try to install Cypress latest.