I try to make a CI script running on a gitlab runner.
What I want is simple:
First the npm install command should be executed to fetch all the required npm packages.
After that the npm test
and npm run build
should be executed.
The .gitblab-ci.yml
script looks as follow:
before_script: - cd my/folder/ - npm install --silent stages: - test - build run_tests: script: - npm test stage: test build: script: - npm run build stage: build
Unfortunatly only the npm install
gets executed twice. And this not silent.npm test
and npm run build
get never called.
Can anyone tell me, what I do wrong?