.gitlab-ci.yml 765 B

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