Commit 7f59adf4 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'cache-go-mod' into 'master'

Cache go mod downloads for setup-test-env

Closes #32433

See merge request gitlab-org/gitlab!17350
parents 043a38f2 8dd2f9cc
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
.default-before_script: .default-before_script:
before_script: before_script:
- date - date
- export GOPATH=$CI_PROJECT_DIR/.go
- mkdir -p $GOPATH
- source scripts/utils.sh - source scripts/utils.sh
- source scripts/prepare_build.sh - source scripts/prepare_build.sh
- date - date
...@@ -22,6 +24,7 @@ ...@@ -22,6 +24,7 @@
cache: cache:
key: "debian-stretch-ruby-2.6.3-node-12.x" key: "debian-stretch-ruby-2.6.3-node-12.x"
paths: paths:
- .go/pkg/mod
- vendor/ruby - vendor/ruby
- .yarn-cache/ - .yarn-cache/
- vendor/gitaly-ruby - vendor/gitaly-ruby
......
...@@ -95,6 +95,8 @@ setup-test-env: ...@@ -95,6 +95,8 @@ setup-test-env:
- tmp/tests - tmp/tests
- config/secrets.yml - config/secrets.yml
- vendor/gitaly-ruby - vendor/gitaly-ruby
cache:
policy: pull-push
rspec unit pg: rspec unit pg:
extends: .rspec-base-pg extends: .rspec-base-pg
......
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