Gitlab CI job succeeds before mocha tests are run
问题 I found that my Gitlab jobs are succeeding and ending before the actual test is run. First, I installing the required dependencies for my app, then I call the mocha commands, but the job succeeds before there is any output from them. My .gitlab-ci.yml: image: node:lts-alpine stages: - test test: stage: test services: - mongo:latest script: - cd server/ - apk add --update git - apk --no-cache add g++ gcc libgcc libstdc++ linux-headers make python - npm install --quiet node-gyp -g - npm install