diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6cfc3915c..b30332c96 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -280,31 +280,31 @@ test_api: path: api/coverage.xml coverage: '/TOTAL\s*\d*\s*\d*\s*(\d*%)/' -# test_front: -# stage: test -# needs: -# - job: lint_front -# rules: -# - if: $CI_COMMIT_BRANCH =~ /(stable|develop)/ -# - changes: [front/**/*] +test_front: + stage: test + needs: + - job: lint_front + rules: + - if: $CI_COMMIT_BRANCH =~ /(stable|develop)/ + - changes: [front/**/*] -# image: $CI_REGISTRY/funkwhale/ci/node-python:18 -# cache: -# - *yarn_cache -# - *node_cache -# - *lint_cache -# before_script: -# - cd front -# - yarn install --frozen-lockfile -# script: -# - yarn test:unit -# artifacts: -# reports: -# junit: front/test_results.xml -# coverage_report: -# coverage_format: cobertura -# path: front/coverage/cobertura-coverage.xml -# coverage: '/All files\s+(?:\|\s+((?:\d+\.)?\d+)\s+){4}.*/' + image: $CI_REGISTRY/funkwhale/ci/node-python:18 + cache: + - *yarn_cache + - *node_cache + - *lint_cache + before_script: + - cd front + - yarn install --frozen-lockfile + script: + - yarn test:unit + artifacts: + reports: + junit: front/test_results.xml + coverage_report: + coverage_format: cobertura + path: front/coverage/cobertura-coverage.xml + coverage: '/All files\s+(?:\|\s+((?:\d+\.)?\d+)\s+){4}.*/' build_metadata: stage: build