Commit f38aacdb authored by Hüseyin Güner's avatar Hüseyin Güner

change cache path

parent 2898a3f9
...@@ -339,18 +339,20 @@ are cached per-branch: ...@@ -339,18 +339,20 @@ are cached per-branch:
```yaml ```yaml
image: golang:1.13 image: golang:1.13
# Cache libraries in between jobs .go-cache:
cache: variables:
key: ${CI_COMMIT_REF_SLUG} GOPATH: $CI_PROJECT_DIR/.go
paths: before_script:
- vendor/ - mkdir -p .go
cache:
before_script: key: ${CI_COMMIT_REF_SLUG}
- go mod vendor paths:
- .go/pkg/mod/
test: test:
extends: .go-cache
script: script:
- go test -mod vendor ./... -v -short - go test ./... -v -short
``` ```
## Availability of the cache ## Availability of the cache
......
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