Skip to content

Commit

Permalink
Cache go packages for CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnetherton committed Mar 14, 2020
1 parent da8cab7 commit 8c11a3b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
steps:
- checkout

- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}

- run:
name: Install Go
command: |
Expand Down Expand Up @@ -62,6 +66,10 @@ jobs:
name: Test AtlasMap Operator
command: make test

- save_cache:
key: go-mod-v1-{{ checksum "go.sum" }}
paths:
- "/home/circleci/go/pkg"
- run:
name: Stop OpenShift
command: oc cluster down
Expand Down

0 comments on commit 8c11a3b

Please sign in to comment.