| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- stages:
- - test
- - qa
- variables:
- APP_ENV: ci
- before_script:
- - echo "" > ./env/local.app.opentalent.fr.crt
- - echo "" > ./env/local.app.opentalent.fr.key
- - corepack enable
- - yarn set version berry
- - HOST=ci yarn install --network-timeout 10000
- cache:
- paths:
- - ./node_modules
- - .yarn
- code_quality:
- stage: qa
- script:
- - yarn prepare
- - yarn eslint
- code_style:
- stage: qa
- script:
- - yarn prettier . --check
- unit:
- stage: test
- script:
- - 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+/'
|