.gitlab-ci.yml 318 B

12345678910111213141516171819202122232425
  1. cache:
  2. key: "$CI_JOB_NAME"
  3. untracked: true
  4. paths:
  5. - node_modules/
  6. before_script:
  7. - npm install
  8. .test_template: &npm_test
  9. script:
  10. - npm run lint
  11. - npm test
  12. test:node8:
  13. image: node:8
  14. <<: *npm_test
  15. test:node10:
  16. image: node:10
  17. <<: *npm_test
  18. test:node12:
  19. image: node:12
  20. <<: *npm_test