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 @@ ...@@ -29,6 +29,15 @@
- vendor/gitaly-ruby - vendor/gitaly-ruby
policy: pull policy: pull
.yarn-cache:
cache:
key:
files:
- yarn.lock
prefix: "v1"
paths:
- node_modules/
.use-pg9: .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" 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: services:
......
...@@ -227,13 +227,12 @@ parallel-spec-reports: ...@@ -227,13 +227,12 @@ parallel-spec-reports:
danger-review: danger-review:
extends: extends:
- .default-retry - .default-retry
- .default-cache - .yarn-cache
- .review:rules:danger - .review:rules:danger
image: registry.gitlab.com/gitlab-org/gitlab-build-images:danger image: registry.gitlab.com/gitlab-org/gitlab-build-images:danger
stage: test stage: test
needs: [] needs: []
script: script:
- git version - source scripts/utils.sh
- node --version - retry yarn install --frozen-lockfile
- yarn install --frozen-lockfile --cache-folder .yarn-cache --prefer-offline
- danger --fail-on-errors=true --verbose - 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