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: ...@@ -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