.gitlab-ci.yml 760 B

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