.gitlab-ci.yml 614 B

123456789101112131415161718192021222324252627282930313233
  1. stages:
  2. - test
  3. variables:
  4. APP_ENV: ci
  5. before_script:
  6. - echo "" > ./local.app-v3.opentalent.fr.crt
  7. - echo "" > ./local.app-v3.opentalent.fr.key
  8. cache:
  9. paths:
  10. - ./node_modules
  11. unit:
  12. stage: test
  13. script:
  14. - yarn install
  15. - yarn test
  16. artifacts:
  17. paths:
  18. - ./coverage/
  19. when: always
  20. reports:
  21. junit: coverage/junit.xml
  22. coverage_report:
  23. coverage_format: cobertura
  24. path: coverage/cobertura-coverage.xml
  25. # Extract total coverage from job logs (https://docs.gitlab.com/15.6/ee/ci/yaml/index.html#coverage)
  26. coverage: '/All files\s*|\s*\d+\.\d+/'