image: node:12 cache: paths: - node_modules/ stages: - test - build test: stage: test tags: - node before_script: - npm install script: # Run tests and print coverage - npm test --coverage build: stage: build tags: - node before_script: - npm install script: - npm run build