NPM E2E测试,在管道中的github动作中不起作用,但在本地工作正常:错误 - 使用退出代码1完成的过程

发布于 2025-01-20 01:03:46 字数 424 浏览 2 评论 0原文

所以我的 ci: lint 测试、单元测试、sast 和打包工作正常。但 e2e 测试在 GitHub actoins 上无法正常工作。我单独运行它来查看它是否有效,但它不断出现此错误。

  • 进程已完成,退出代码为 1。

我已运行这些命令以便在终端上运行。让 docker 启动容器并启动服务器等等。这样 e2e 就可以工作了。

  • npx playwright install
  • docker-compose up -d
  • npm run start
  • npm run test-e2e

这是我的 e2e 代码我的 yml 中有。

So i've got the ci: lint test, unit test, sast and packaging to work fine. But the e2e testing doesn't work properly on GitHub actoins. I am running it solely by itself to see if it works, but it keeps coming up with this error.

  • Process completed with exit code 1.

I've run these commands in order to run on terminal. Get docker to get the container up and get the server started etc etc. So that the e2e can work.

  • npx playwright install
  • docker-compose up -d
  • npm run start
  • npm run test-e2e

this is the e2e code that i have in my yml.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文