Commit c5fd6b65 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch '217751-decrease-coverage-frontend-duration-from-7-minutes' into 'master'

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

Closes #217751

See merge request gitlab-org/gitlab!32146
parents 90a52d6b d2e95a46
......@@ -250,11 +250,13 @@ jest-as-if-foss:
coverage-frontend:
extends:
- .default-retry
- .yarn-cache
- .frontend:rules:ee-mr-and-master-only
needs: ["jest"]
stage: post-test
before_script:
- yarn install --frozen-lockfile --cache-folder .yarn-cache --prefer-offline
- source scripts/utils.sh
- retry yarn install --frozen-lockfile
script:
- yarn node scripts/frontend/merge_coverage_frontend.js
artifacts:
......@@ -263,8 +265,7 @@ coverage-frontend:
paths:
- coverage-frontend/
cache:
paths:
- .yarn-cache/
policy: pull
.qa-frontend-node:
extends:
......
......@@ -238,3 +238,5 @@ danger-review:
- source scripts/utils.sh
- retry yarn install --frozen-lockfile
- 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