.gitlab-ci.yml 361 B

123456789101112131415161718192021222324252627282930
  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:node4:
  13. image: node:4
  14. <<: *npm_test
  15. test:node6:
  16. image: node:6
  17. <<: *npm_test
  18. test:node8:
  19. image: node:8
  20. <<: *npm_test
  21. test:node10:
  22. image: node:10
  23. <<: *npm_test