| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- stages:
- - test
- variables:
- APP_ENV: ci
- before_script:
- - echo "" > ./env/local.app.opentalent.fr.crt
- - echo "" > ./env/local.app.opentalent.fr.key
- cache:
- paths:
- - ./node_modules
- code_quality:
- script:
- - yarn eslint . --env=staging
- code_style:
- script:
- - yarn prettier . --check
- unit:
- stage: test
- script:
- - HOST=ci yarn install --network-timeout 10000
- - yarn test
- artifacts:
- paths:
- - ./coverage/
- when: always
- reports:
- junit: coverage/junit.xml
- coverage_report:
- coverage_format: cobertura
- path: coverage/cobertura-coverage.xml
- # Extract total coverage from job logs (https://docs.gitlab.com/15.6/ee/ci/yaml/index.html#coverage)
- coverage: '/All files\s*|\s*\d+\.\d+/'
|