.gitlab-ci.yml 316 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:node6:
  13. image: node:6
  14. <<: *npm_test
  15. test:node8:
  16. image: node:8
  17. <<: *npm_test
  18. test:node10:
  19. image: node:10
  20. <<: *npm_test