Skip to content

Commit

Permalink
ci: explicit go mod cache keys (#2566)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr authored Jun 15, 2021
1 parent 64a332a commit e6ee5b9
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ jobs:
steps:
- checkout
- setup_remote_docker

- go/load-cache:
key: ory-hydra-go-mod-v1
- go/mod-download
- go/save-cache:
key: ory-hydra-go-mod-v1

- nancy/install
- nancy/check
- prettier/install
Expand All @@ -58,7 +65,6 @@ jobs:
- goreleaser/check
- golangci/install
- golangci/lint
- go/mod-download-cached
- run: make .bin/go-acc
- run: .bin/go-acc -o coverage.txt ./... -- -failfast -timeout=20m -tags sqlite
# Running race conditions requires parallel tests, otherwise it's worthless (which is the case)
Expand Down Expand Up @@ -99,7 +105,11 @@ jobs:
- node_modules
- ~/.cache # cypress

- go/mod-download-cached
- go/load-cache:
key: ory-hydra-go-mod-v1
- go/mod-download
- go/save-cache:
key: ory-hydra-go-mod-v1

- run: ./test/e2e/circle-ci.bash memory
- run: ./test/e2e/circle-ci.bash memory-jwt
Expand Down

0 comments on commit e6ee5b9

Please sign in to comment.