@@ -40,10 +40,11 @@ jobs:
40
40
steps :
41
41
- name : Checkout
42
42
uses : actions/checkout@v2
43
- - name : Setup Go 1.17
44
- uses : actions/setup-go@v2
43
+ - name : Setup Go
44
+ uses : actions/setup-go@v3
45
45
with :
46
- go-version : 1.17
46
+ go-version-file : go.mod
47
+ cache : true
47
48
- name : go build deps
48
49
run : make embed-files-test
49
50
- name : golangci-lint
@@ -58,10 +59,11 @@ jobs:
58
59
steps :
59
60
- name : Checkout
60
61
uses : actions/checkout@v2
61
- - name : Setup Go 1.17
62
- uses : actions/setup-go@v2
62
+ - name : Setup Go
63
+ uses : actions/setup-go@v3
63
64
with :
64
- go-version : 1.17
65
+ go-version-file : go.mod
66
+ cache : true
65
67
- name : go mod tidy
66
68
run : make go-mod-tidy
67
69
- name : Codegen checks
@@ -73,10 +75,11 @@ jobs:
73
75
steps :
74
76
- name : Checkout
75
77
uses : actions/checkout@v2
76
- - name : Setup Go 1.17
77
- uses : actions/setup-go@v2
78
+ - name : Setup Go
79
+ uses : actions/setup-go@v3
78
80
with :
79
- go-version : 1.17
81
+ go-version-file : go.mod
82
+ cache : true
80
83
- name : go mod tidy
81
84
run : make go-mod-tidy
82
85
- name : gomock checks
@@ -97,22 +100,11 @@ jobs:
97
100
steps :
98
101
- name : Checkout
99
102
uses : actions/checkout@v2
100
- - name : Restore Module Cache
101
- uses : actions/cache@v2
103
+ - name : Setup Go
104
+ uses : actions/setup-go@v3
102
105
with :
103
- path : ~/go/pkg/mod
104
- key : ${{ runner.os }}-gomod2-${{ hashFiles('**/go.sum') }}
105
- restore-keys : |
106
- ${{ runner.os }}-gomod2-
107
- - name : Restore Build Cache
108
- uses : actions/cache@v2
109
- with :
110
- path : ~/.cache/go-build
111
- key : ${{ runner.os }}-gobuild-${{ hashFiles('**/*.go') }}
112
- - name : Setup Go 1.17
113
- uses : actions/setup-go@v2
114
- with :
115
- go-version : 1.17
106
+ go-version-file : go.mod
107
+ cache : true
116
108
- name : Go Build
117
109
run : make build-ci
118
110
@@ -123,22 +115,11 @@ jobs:
123
115
steps :
124
116
- name : Checkout
125
117
uses : actions/checkout@v2
126
- - name : Restore Module Cache
127
- uses : actions/cache@v2
128
- with :
129
- path : ~/go/pkg/mod
130
- key : ${{ runner.os }}-gomod2-${{ hashFiles('**/go.sum') }}
131
- restore-keys : |
132
- ${{ runner.os }}-gomod2-
133
- - name : Restore Build Cache
134
- uses : actions/cache@v2
135
- with :
136
- path : ~/.cache/go-build
137
- key : ${{ runner.os }}-gobuild-${{ hashFiles('**/*.go') }}
138
- - name : Setup Go 1.17
139
- uses : actions/setup-go@v2
118
+ - name : Setup Go
119
+ uses : actions/setup-go@v3
140
120
with :
141
- go-version : 1.17
121
+ go-version-file : go.mod
122
+ cache : true
142
123
- name : go mod tidy
143
124
run : make go-mod-tidy
144
125
- name : Test
@@ -149,35 +130,6 @@ jobs:
149
130
with :
150
131
flags : unittests
151
132
152
- scenarios_tests :
153
- name : Test various Envoy + SMI configuration scenarios
154
- runs-on : ubuntu-latest
155
- needs : build
156
- steps :
157
- - name : Checkout
158
- uses : actions/checkout@v2
159
- - name : Restore Module Cache
160
- uses : actions/cache@v2
161
- with :
162
- path : ~/go/pkg/mod
163
- key : ${{ runner.os }}-gomod2-${{ hashFiles('**/go.sum') }}
164
- restore-keys : |
165
- ${{ runner.os }}-gomod2-
166
- - name : Restore Build Cache
167
- uses : actions/cache@v2
168
- with :
169
- path : ~/.cache/go-build
170
- key : ${{ runner.os }}-gobuild-${{ hashFiles('**/*.go') }}
171
- - name : Setup Go 1.17
172
- uses : actions/setup-go@v2
173
- with :
174
- go-version : 1.17
175
- - name : Test
176
- run : |
177
- touch .env
178
- make kind-up
179
- go test -v ./tests/scenarios/...
180
-
181
133
imagescan :
182
134
name : Scan images for security vulnerabilities
183
135
runs-on : ubuntu-latest
@@ -221,22 +173,11 @@ jobs:
221
173
steps :
222
174
- name : Checkout
223
175
uses : actions/checkout@v2
224
- - name : Restore Module Cache
225
- uses : actions/cache@v2
226
- with :
227
- path : ~/go/pkg/mod
228
- key : ${{ runner.os }}-gomod2-${{ hashFiles('**/go.sum') }}
229
- restore-keys : |
230
- ${{ runner.os }}-gomod2-
231
- - name : Restore Build Cache
232
- uses : actions/cache@v2
233
- with :
234
- path : ~/.cache/go-build
235
- key : ${{ runner.os }}-gobuild-${{ hashFiles('**/*.go') }}
236
- - name : Setup Go 1.17
237
- uses : actions/setup-go@v2
176
+ - name : Setup Go
177
+ uses : actions/setup-go@v3
238
178
with :
239
- go-version : 1.17
179
+ go-version-file : go.mod
180
+ cache : true
240
181
- name : Build test dependencies
241
182
env :
242
183
DOCKER_BUILDX_OUTPUT : type=docker
@@ -275,27 +216,11 @@ jobs:
275
216
steps :
276
217
- name : Checkout
277
218
uses : actions/checkout@v2
278
-
279
- - name : Restore Module Cache
280
- uses : actions/cache@v2
281
- with :
282
- path : ~/go/pkg/mod
283
- key : ${{ runner.os }}-gomod2-${{ hashFiles('**/go.sum') }}
284
- restore-keys : |
285
- ${{ runner.os }}-gomod2-
286
-
287
- - name : Restore Build Cache
288
- uses : actions/cache@v2
219
+ - name : Setup Go
220
+ uses : actions/setup-go@v3
289
221
with :
290
- path : ~/.cache/go-build
291
- key : ${{ runner.os }}-gobuild-${{ hashFiles('**/*.go') }}
292
-
293
- - name : Setup Go 1.17
294
- uses : actions/setup-go@v2
295
- with :
296
- go-version : 1.17
297
- id : go
298
-
222
+ go-version-file : go.mod
223
+ cache : true
299
224
- name : Run Simulation w/ Tresor, SMI policies, egress disabled and reconciler disabled
300
225
env :
301
226
CERT_MANAGER : " tresor"
0 commit comments