gitlab-ci 配置,管道卡在单元测试中
gitlab-ci config, pipeline gets stuck on unit test
预计
gitlab-ci 配置 运行s 管道期间的测试并完成
结果
永远测试运行,管道永远不会结束
项目是一个 ReactJS/Jest 前端应用程序:
https://gitlab.com/futuratum/moon.holdings
暂停管道:https://gitlab.com/futuratum/moon.holdings/pipelines/72013854
build site:
image: node:10
stage: build
script:
- npm install --progress=false
- npm run build
artifacts:
expire_in: 1 week
paths:
- dist
unit test:
image: node:10
stage: test
script:
- npm install --progress=false
- npm run test
尝试从 package.json
中的 test
脚本中删除 --watch
标志。
我认为你不需要在 CI 工作中观看。
预计
gitlab-ci 配置 运行s 管道期间的测试并完成
结果
永远测试运行,管道永远不会结束
项目是一个 ReactJS/Jest 前端应用程序: https://gitlab.com/futuratum/moon.holdings
暂停管道:https://gitlab.com/futuratum/moon.holdings/pipelines/72013854
build site:
image: node:10
stage: build
script:
- npm install --progress=false
- npm run build
artifacts:
expire_in: 1 week
paths:
- dist
unit test:
image: node:10
stage: test
script:
- npm install --progress=false
- npm run test
尝试从 package.json
中的 test
脚本中删除 --watch
标志。
我认为你不需要在 CI 工作中观看。