运行 cypress 测试时 github actions 错误

发布于 2025-01-11 08:11:16 字数 1490 浏览 0 评论 0原文

我在 cypress 的 github 操作中收到以下错误,

Cypress 日志

这是应用程序的 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,

Cypress logs

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

零度℉ 2025-01-18 08:11:16

您是否将 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文