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

Merge branch 'speedup-danger-review' into 'master'

Speedup danger-review by caching node_modules instead of .yarn-cache

See merge request gitlab-org/gitlab!31374
parents f193b15c cdf6974d
......@@ -29,6 +29,15 @@
- vendor/gitaly-ruby
policy: pull
.yarn-cache:
cache:
key:
files:
- yarn.lock
prefix: "v1"
paths:
- node_modules/
.use-pg9:
image: "registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6.6-golang-1.14-git-2.26-lfs-2.9-chrome-73.0-node-12.x-yarn-1.21-postgresql-9.6-graphicsmagick-1.3.34"
services:
......
......@@ -227,13 +227,12 @@ parallel-spec-reports:
danger-review:
extends:
- .default-retry
- .default-cache
- .yarn-cache
- .review:rules:danger
image: registry.gitlab.com/gitlab-org/gitlab-build-images:danger
stage: test
needs: []
script:
- git version
- node --version
- yarn install --frozen-lockfile --cache-folder .yarn-cache --prefer-offline
- source scripts/utils.sh
- retry yarn install --frozen-lockfile
- danger --fail-on-errors=true --verbose
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