File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ commands:
15
15
rm -rf go*.tar.gz
16
16
echo 'export PATH=$PATH:/usr/local/go/bin' >> $BASH_ENV
17
17
echo 'export PATH=$PATH:~/go/bin' >> $BASH_ENV
18
+ mkdir ~/go
19
+ echo 'export GOPATH=~/go' >> $BASH_ENV
18
20
19
21
quay-login :
20
22
description : Log Docker agent into Quay.io
72
74
steps :
73
75
- checkout
74
76
- install-go
77
+ - restore_cache :
78
+ keys :
79
+ - go-mod-v1-{{ checksum "go.sum" }}
80
+ - go-mod-v1-
75
81
- run :
76
82
name : Install Linting Tools
77
83
command : |
81
87
- run :
82
88
name : Lint
83
89
command : make lint
90
+ - save_cache :
91
+ key : go-mod-v1-{{ checksum "go.sum" }}
92
+ paths :
93
+ - " ~/go/pkg/mod"
84
94
85
95
test :
86
96
machine :
89
99
steps :
90
100
- checkout
91
101
- install-go
102
+ - restore_cache :
103
+ keys :
104
+ - go-mod-v1-{{ checksum "go.sum" }}
105
+ - go-mod-v1-
92
106
- run :
93
107
name : Initialize Credentials
94
108
command : |
@@ -110,6 +124,10 @@ jobs:
110
124
- run :
111
125
name : Go Tests
112
126
command : make test
127
+ - save_cache :
128
+ key : go-mod-v1-{{ checksum "go.sum" }}
129
+ paths :
130
+ - " ~/go/pkg/mod"
113
131
114
132
build-and-upload-cli :
115
133
docker :
You can’t perform that action at this time.
0 commit comments