fix: circleci config format

This commit is contained in:
Kevin Davis 2019-10-15 13:03:14 -04:00
parent 70c9171e77
commit 4260891bcd

View File

@ -1,5 +1,4 @@
version 2.1 version: 2.1
executors: executors:
golang: golang:
docker: docker:
@ -14,20 +13,20 @@ commands:
type: string type: string
steps: steps:
- attach_workspace: - attach_workspace:
at: /tmp/workspace at: /tmp/workspace
- restore_cache: - restore_cache:
name: "Restore source code cache" name: "Restore source code cache"
keys: keys:
- go-src-v1-{{ .Revision }} - go-src-v1-{{ .Revision }}
- checkout - checkout
- restore_cache: - restore_cache:
name: "Restore go modules cache" name: "Restore go modules cache"
keys: keys:
- go-mod-v2-{{ checksum "go.sum" }} - go-mod-v2-{{ checksum "go.sum" }}
- run: - run:
name: << parameters.description >> name: << parameters.description >>
cammnd: | command: |
make << parameters.target >> make << parameters.target >>
jobs: jobs:
setup-dependencies: setup-dependencies:
@ -35,12 +34,12 @@ jobs:
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
name: "Restore go modules cache" name: "Restore go modules cache"
keys: keys:
- go-mod-v2-{{ checksum "go.sum" }} - go-mod-v2-{{ checksum "go.sum" }}
- run: - run:
name: Cache go modules name: Cache go modules
command: make go-mod-cache command: make go-mod-cache
- run: - run:
name: Build name: Build
command: make build command: make build