File tree Expand file tree Collapse file tree 1 file changed +3
-34
lines changed Expand file tree Collapse file tree 1 file changed +3
-34
lines changed Original file line number Diff line number Diff line change @@ -22,28 +22,10 @@ jobs:
2222 name : Check for Lint
2323 command : markdownlint .
2424
25- cache_go_mod :
26- << : *defaults
27- steps :
28- - checkout
29- - restore_cache :
30- keys :
31- - go-mod-{{ checksum "go.sum" }}
32- - run :
33- name : Populate Go Mod Cache
34- command : go mod download
35- - save_cache :
36- key : go-mod-{{ checksum "go.sum" }}
37- paths :
38- - ' /go/pkg/mod'
39-
4025 build_source :
4126 << : *defaults
4227 steps :
4328 - checkout
44- - restore_cache :
45- keys :
46- - go-mod-{{ checksum "go.sum" }}
4729 - run :
4830 name : Build Source
4931 command : go build -mod=readonly ./...
5234 << : *defaults
5335 steps :
5436 - checkout
55- - restore_cache :
56- keys :
57- - go-mod-{{ checksum "go.sum" }}
5837 - run :
5938 name : Install golangci-lint
6039 command : curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.18.0
6645 << : *defaults
6746 steps :
6847 - checkout
69- - restore_cache :
70- keys :
71- - go-mod-{{ checksum "go.sum" }}
7248 - run :
7349 name : Run Tests
7450 command : go test -coverprofile cover.out -race ./...
@@ -81,13 +57,6 @@ workflows:
8157 build_and_test :
8258 jobs :
8359 - lint_markdown
84- - cache_go_mod
85- - build_source :
86- requires :
87- - cache_go_mod
88- - lint_source :
89- requires :
90- - cache_go_mod
91- - unit_test :
92- requires :
93- - cache_go_mod
60+ - build_source
61+ - lint_source
62+ - unit_test
You can’t perform that action at this time.
0 commit comments