@@ -26,8 +26,8 @@ concurrency:
26
26
cancel-in-progress : true
27
27
28
28
env :
29
- GOSEC_VERSION : ' 2.14 .0'
30
- HELM_VERSION : v3.10.1
29
+ GOSEC_VERSION : ' 2.15 .0'
30
+ HELM_VERSION : v3.10.3
31
31
32
32
jobs :
33
33
build-kube-ovn :
60
60
61
61
- name : Install gosec
62
62
run : |
63
- curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $(go env GOPATH)/bin 'v${{ env.GOSEC_VERSION }}'
63
+ tmp=$(mktemp -d)
64
+ archive="gosec_${{ env.GOSEC_VERSION }}_$(go env GOHOSTOS)_$(go env GOHOSTARCH).tar.gz"
65
+ wget -q -O "$tmp/$archive" https://github.com/securego/gosec/releases/download/v${{ env.GOSEC_VERSION }}/$archive
66
+ tar --no-same-owner -C "$tmp" -xzf "$tmp/$archive"
67
+ install "$tmp/gosec" /usr/local/bin
68
+ rm -rf $tmp
64
69
65
70
- name : Build
66
71
run : |
95
100
96
101
k8s-conformance-e2e :
97
102
name : Kubernetes Conformance E2E
98
- needs : build-kube-ovn
103
+ needs :
104
+ - build-kube-ovn
105
+ - build-e2e-binaries
99
106
runs-on : ubuntu-22.04
100
107
timeout-minutes : 60
101
108
strategy :
@@ -112,9 +119,11 @@ jobs:
112
119
- uses : actions/checkout@v3
113
120
114
121
- name : Create the default branch directory
122
+ if : github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
115
123
run : mkdir -p test/e2e/source
116
124
117
125
- name : Check out the default branch
126
+ if : github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
118
127
uses : actions/checkout@v3
119
128
with :
120
129
ref : ${{ github.event.repository.default_branch }}
@@ -143,18 +152,14 @@ jobs:
143
152
run : echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
144
153
145
154
- name : Go cache
146
- uses : actions/cache@v3
155
+ uses : actions/cache/restore @v3
147
156
with :
148
157
path : |
149
158
~/.cache/go-build
150
159
~/go/pkg/mod
151
- key : ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86- ${{ hashFiles(format('{0}/**/go.sum', env.E2E_DIR)) }}
160
+ key : ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-${{ hashFiles(format('{0}/**/go.sum', env.E2E_DIR)) }}
152
161
restore-keys : ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86-
153
162
154
- - name : Build e2e binaries
155
- working-directory : ${{ env.E2E_DIR }}
156
- run : make e2e-compile
157
-
158
163
- name : Install kind
159
164
uses : helm/kind-action@v1
160
165
with :
@@ -190,7 +195,9 @@ jobs:
190
195
k8s-netpol-e2e :
191
196
name : Kubernetes Network Policy E2E
192
197
if : github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'network policy')
193
- needs : build-kube-ovn
198
+ needs :
199
+ - build-kube-ovn
200
+ - build-e2e-binaries
194
201
runs-on : ubuntu-22.04
195
202
timeout-minutes : 60
196
203
strategy :
@@ -204,9 +211,11 @@ jobs:
204
211
- uses : actions/checkout@v3
205
212
206
213
- name : Create the default branch directory
214
+ if : github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
207
215
run : mkdir -p test/e2e/source
208
216
209
217
- name : Check out the default branch
218
+ if : github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
210
219
uses : actions/checkout@v3
211
220
with :
212
221
ref : ${{ github.event.repository.default_branch }}
@@ -235,18 +244,14 @@ jobs:
235
244
run : echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
236
245
237
246
- name : Go cache
238
- uses : actions/cache@v3
247
+ uses : actions/cache/restore @v3
239
248
with :
240
249
path : |
241
250
~/.cache/go-build
242
251
~/go/pkg/mod
243
252
key : ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86-${{ hashFiles(format('{0}/**/go.sum', env.E2E_DIR)) }}
244
253
restore-keys : ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86-
245
254
246
- - name : Build e2e binaries
247
- working-directory : ${{ env.E2E_DIR }}
248
- run : make e2e-compile
249
-
250
255
- name : Install kind
251
256
uses : helm/kind-action@v1
252
257
with :
@@ -292,9 +297,11 @@ jobs:
292
297
- uses : actions/checkout@v3
293
298
294
299
- name : Create the default branch directory
300
+ if : github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
295
301
run : mkdir -p test/e2e/source
296
302
297
303
- name : Check out the default branch
304
+ if : github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
298
305
uses : actions/checkout@v3
299
306
with :
300
307
ref : ${{ github.event.repository.default_branch }}
@@ -339,7 +346,9 @@ jobs:
339
346
340
347
kube-ovn-conformance-e2e :
341
348
name : Kube-OVN Conformance E2E
342
- needs : build-kube-ovn
349
+ needs :
350
+ - build-kube-ovn
351
+ - build-e2e-binaries
343
352
runs-on : ubuntu-22.04
344
353
timeout-minutes : 30
345
354
strategy :
@@ -353,9 +362,11 @@ jobs:
353
362
- uses : actions/checkout@v3
354
363
355
364
- name : Create the default branch directory
365
+ if : github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
356
366
run : mkdir -p test/e2e/source
357
367
358
368
- name : Check out the default branch
369
+ if : github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
359
370
uses : actions/checkout@v3
360
371
with :
361
372
ref : ${{ github.event.repository.default_branch }}
@@ -379,18 +390,14 @@ jobs:
379
390
run : echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
380
391
381
392
- name : Go cache
382
- uses : actions/cache@v3
393
+ uses : actions/cache/restore @v3
383
394
with :
384
395
path : |
385
396
~/.cache/go-build
386
397
~/go/pkg/mod
387
398
key : ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86-${{ hashFiles(format('{0}/**/go.sum', env.E2E_DIR)) }}
388
399
restore-keys : ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86-
389
400
390
- - name : Build e2e binaries
391
- working-directory : ${{ env.E2E_DIR }}
392
- run : make e2e-compile
393
-
394
401
- name : Install kind
395
402
uses : helm/kind-action@v1
396
403
with :
@@ -570,8 +577,10 @@ jobs:
570
577
run : sh dist/images/cleanup.sh
571
578
572
579
cilium-chaining-e2e :
573
- needs : build-kube-ovn
574
580
name : Cilium Chaining E2E
581
+ needs :
582
+ - build-kube-ovn
583
+ - build-e2e-binaries
575
584
runs-on : ubuntu-22.04
576
585
timeout-minutes : 30
577
586
steps :
@@ -581,9 +590,11 @@ jobs:
581
590
version : ' ${{ env.HELM_VERSION }}'
582
591
583
592
- name : Create the default branch directory
593
+ if : github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
584
594
run : mkdir -p test/e2e/source
585
595
586
596
- name : Check out the default branch
597
+ if : github.base_ref == github.event.repository.default_branch || github.ref_name == github.event.repository.default_branch
587
598
uses : actions/checkout@v3
588
599
with :
589
600
ref : ${{ github.event.repository.default_branch }}
@@ -612,18 +623,14 @@ jobs:
612
623
run : echo "GO_FULL_VER=$(go version | awk '{print $3}')" >> "$GITHUB_ENV"
613
624
614
625
- name : Go cache
615
- uses : actions/cache@v3
626
+ uses : actions/cache/restore @v3
616
627
with :
617
628
path : |
618
629
~/.cache/go-build
619
630
~/go/pkg/mod
620
631
key : ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86-${{ hashFiles(format('{0}/**/go.sum', env.E2E_DIR)) }}
621
632
restore-keys : ${{ runner.os }}-e2e-${{ env.GO_FULL_VER }}-x86-
622
633
623
- - name : Build e2e binaries
624
- working-directory : ${{ env.E2E_DIR }}
625
- run : make e2e-compile
626
-
627
634
- name : Install kind
628
635
uses : helm/kind-action@v1
629
636
with :
0 commit comments