Skip to content

Commit

Permalink
update circle config to save go mod cache
Browse files Browse the repository at this point in the history
  • Loading branch information
cotarg committed Oct 9, 2019
1 parent 10a89a7 commit 247f8be
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 @@ -24,12 +24,7 @@ jobs:
- restore_cache: # restore cache from dev-build job
keys:
- go-version-modcache-v1-{{ checksum "go.mod" }}

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

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

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

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

0 comments on commit 247f8be

Please sign in to comment.