Skip to content

Commit

Permalink
update circleci config to save mod cache
Browse files Browse the repository at this point in the history
  • Loading branch information
cotarg committed Oct 9, 2019
1 parent f3eb871 commit 214e7f8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,7 @@ jobs:
- restore_cache:
keys:
- go-getter-modcache-v1-{{ checksum "go.mod" }}

# Save go module cache if the go.mod file has changed
- save_cache:
key: go-getter-modcache-v1-{{ checksum "go.mod" }}
paths:
- "/go/pkg/mod"
- go-getter-modcache-v1

# check go fmt output because it does not report non-zero when there are fmt changes
- run:
Expand All @@ -52,6 +47,12 @@ jobs:
- store_artifacts:
path: *TEST_RESULTS_PATH

# Save go module cache if the go.mod file has changed
- save_cache:
key: go-getter-modcache-v1-{{ checksum "go.mod" }}
paths:
- "/go/pkg/mod"

workflows:
version: 2
test-and-build:
Expand Down

0 comments on commit 214e7f8

Please sign in to comment.