fix ci config

This commit is contained in:
Kevin Davis 2019-10-15 16:06:12 -04:00
parent 107431a311
commit 0e389144ab

View File

@ -30,6 +30,33 @@ commands:
jobs: jobs:
setup-dependencies: setup-dependencies:
executor: golang
steps:
- checkout
- restore_cache:
name: "Restore go modules cache"
keys:
- go-mod-v2-{{ checksum "go.sum" }}
- run:
name: Cache go modules
command: make go-mod-cache
- run:
name: Build
command: make build
- run:
name: Git garbage collection
command: git gc
- save_cache:
name: "Save go modules cache"
key: go-mod-v2-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"
- save_cache:
name: "Save source code cache"
key: go-src-v1-{{ .Revision }}
paths:
- ".git"
setup-dependencies-tags:
executor: golang executor: golang
steps: steps:
- checkout - checkout