Commit d2e95a46 authored by Rémy Coutable's avatar Rémy Coutable

Use a more optimized caching strategy for 'coverage-frontend'

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 41b1755f
...@@ -250,11 +250,13 @@ jest-as-if-foss: ...@@ -250,11 +250,13 @@ jest-as-if-foss:
coverage-frontend: coverage-frontend:
extends: extends:
- .default-retry - .default-retry
- .yarn-cache
- .frontend:rules:ee-mr-and-master-only - .frontend:rules:ee-mr-and-master-only
needs: ["jest"] needs: ["jest"]
stage: post-test stage: post-test
before_script: before_script:
- yarn install --frozen-lockfile --cache-folder .yarn-cache --prefer-offline - source scripts/utils.sh
- retry yarn install --frozen-lockfile
script: script:
- yarn node scripts/frontend/merge_coverage_frontend.js - yarn node scripts/frontend/merge_coverage_frontend.js
artifacts: artifacts:
...@@ -263,8 +265,7 @@ coverage-frontend: ...@@ -263,8 +265,7 @@ coverage-frontend:
paths: paths:
- coverage-frontend/ - coverage-frontend/
cache: cache:
paths: policy: pull
- .yarn-cache/
.qa-frontend-node: .qa-frontend-node:
extends: extends:
......
...@@ -238,3 +238,5 @@ danger-review: ...@@ -238,3 +238,5 @@ danger-review:
- source scripts/utils.sh - source scripts/utils.sh
- retry yarn install --frozen-lockfile - retry yarn install --frozen-lockfile
- danger --fail-on-errors=true --verbose - danger --fail-on-errors=true --verbose
cache:
policy: pull
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment