.gitlab-ci.yml 814 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. - HOST=ci yarn install --network-timeout 10000
  14. - yarn prepare
  15. - yarn eslint
  16. code_style:
  17. script:
  18. - yarn prettier . --check
  19. unit:
  20. stage: test
  21. script:
  22. - HOST=ci yarn install --network-timeout 10000
  23. - yarn test
  24. artifacts:
  25. paths:
  26. - ./coverage/
  27. when: always
  28. reports:
  29. junit: coverage/junit.xml
  30. coverage_report:
  31. coverage_format: cobertura
  32. path: coverage/cobertura-coverage.xml
  33. # Extract total coverage from job logs (https://docs.gitlab.com/15.6/ee/ci/yaml/index.html#coverage)
  34. coverage: '/All files\s*|\s*\d+\.\d+/'