File tree 1 file changed +3
-34
lines changed
1 file changed +3
-34
lines changed Original file line number Diff line number Diff line change @@ -22,28 +22,10 @@ jobs:
22
22
name : Check for Lint
23
23
command : markdownlint .
24
24
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
-
40
25
build_source :
41
26
<< : *defaults
42
27
steps :
43
28
- checkout
44
- - restore_cache :
45
- keys :
46
- - go-mod-{{ checksum "go.sum" }}
47
29
- run :
48
30
name : Build Source
49
31
command : go build -mod=readonly ./...
52
34
<< : *defaults
53
35
steps :
54
36
- checkout
55
- - restore_cache :
56
- keys :
57
- - go-mod-{{ checksum "go.sum" }}
58
37
- run :
59
38
name : Install golangci-lint
60
39
command : curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.18.0
66
45
<< : *defaults
67
46
steps :
68
47
- checkout
69
- - restore_cache :
70
- keys :
71
- - go-mod-{{ checksum "go.sum" }}
72
48
- run :
73
49
name : Run Tests
74
50
command : go test -coverprofile cover.out -race ./...
@@ -81,13 +57,6 @@ workflows:
81
57
build_and_test :
82
58
jobs :
83
59
- 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