我正在尝试使用 GitLab CI 在服务器上构建、测试和部署 Express 应用程序(运行器与 shell 执行器一起运行)。但是,test:async和deploy_staging作业不会终止。但是当检查 GitLab 内的终端时,Express 服务器确实启动了。是什么赋予了 ?
stages:
- build
- test
- deploy
### Jobs ###
build:
stage: build
script:
- npm install -q
- npm run build
- knex migrate:latest
- knex seed:run
artifacts:
paths:
- build/
- node_modules/
tags:
- database
- build
test:lint:
stage: test
script:
- npm run lint
tags:
- lint
# Run the Express server
test:async:
stage: test
script:
- npm start &
- …Run Code Online (Sandbox Code Playgroud)