@@ -64,12 +64,10 @@ jobs:
64
64
- '**'
65
65
docs:
66
66
- 'docs/**'
67
+ # For testing:
68
+ # - '.github/**'
67
69
sh:
68
70
- "**.sh"
69
- go:
70
- - "**.go"
71
- tf:
72
- - "**.tf"
73
71
ts:
74
72
- 'site/**'
75
73
k8s:
94
92
name : style/lint/golangci
95
93
timeout-minutes : 5
96
94
runs-on : ubuntu-latest
97
- needs : changes
98
- if : needs.changes.outputs.go == 'true'
99
95
steps :
100
96
- uses : actions/checkout@v3
101
97
- uses : actions/setup-go@v3
@@ -119,8 +115,6 @@ jobs:
119
115
name : style/lint/shellcheck
120
116
timeout-minutes : 5
121
117
runs-on : ubuntu-latest
122
- needs : changes
123
- if : needs.changes.outputs.sh == 'true'
124
118
steps :
125
119
- uses : actions/checkout@v3
126
120
- name : Run ShellCheck
@@ -134,8 +128,6 @@ jobs:
134
128
name : " style/lint/typescript"
135
129
timeout-minutes : 5
136
130
runs-on : ubuntu-latest
137
- needs : changes
138
- if : needs.changes.outputs.ts == 'true'
139
131
steps :
140
132
- name : Checkout
141
133
uses : actions/checkout@v3
@@ -255,8 +247,6 @@ jobs:
255
247
name : " style/fmt"
256
248
runs-on : ubuntu-latest
257
249
timeout-minutes : 5
258
- needs : changes
259
- if : needs.changes.outputs.sh == 'true' || needs.changes.outputs.ts == 'true' || needs.changes.outputs.tf == 'true'
260
250
steps :
261
251
- name : Checkout
262
252
uses : actions/checkout@v3
@@ -290,7 +280,6 @@ jobs:
290
280
name : " test/go"
291
281
runs-on : ${{ matrix.os }}
292
282
timeout-minutes : 20
293
- needs : changes
294
283
strategy :
295
284
matrix :
296
285
os :
@@ -299,36 +288,30 @@ jobs:
299
288
- windows-2022
300
289
steps :
301
290
- uses : actions/checkout@v3
302
- if : needs.changes.outputs.go == 'true'
303
291
304
292
- uses : actions/setup-go@v3
305
- if : needs.changes.outputs.go == 'true'
306
293
with :
307
294
go-version : " ~1.19"
308
295
309
296
- name : Echo Go Cache Paths
310
- if : needs.changes.outputs.go == 'true'
311
297
id : go-cache-paths
312
298
run : |
313
299
echo "::set-output name=go-build::$(go env GOCACHE)"
314
300
echo "::set-output name=go-mod::$(go env GOMODCACHE)"
315
301
316
302
- name : Go Build Cache
317
- if : needs.changes.outputs.go == 'true'
318
303
uses : actions/cache@v3
319
304
with :
320
305
path : ${{ steps.go-cache-paths.outputs.go-build }}
321
306
key : ${{ runner.os }}-go-build-${{ hashFiles('**/go.**', '**.go') }}
322
307
323
308
- name : Go Mod Cache
324
- if : needs.changes.outputs.go == 'true'
325
309
uses : actions/cache@v3
326
310
with :
327
311
path : ${{ steps.go-cache-paths.outputs.go-mod }}
328
312
key : ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
329
313
330
314
- name : Install gotestsum
331
- if : needs.changes.outputs.go == 'true'
332
315
uses : jaxxstorm/action-install-gh-release@v1.7.1
333
316
env :
334
317
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -337,13 +320,11 @@ jobs:
337
320
tag : v1.7.0
338
321
339
322
- uses : hashicorp/setup-terraform@v2
340
- if : needs.changes.outputs.go == 'true'
341
323
with :
342
324
terraform_version : 1.1.9
343
325
terraform_wrapper : false
344
326
345
327
- name : Test with Mock Database
346
- if : needs.changes.outputs.go == 'true'
347
328
id : test
348
329
shell : bash
349
330
run : |
@@ -369,7 +350,7 @@ jobs:
369
350
# that is no guarantee, see:
370
351
# https://github.com/codecov/codecov-action/issues/788
371
352
continue-on-error : true
372
- if : steps.test.outputs.cover && github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork && needs.changes.outputs.go == 'true'
353
+ if : steps.test.outputs.cover && github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork
373
354
with :
374
355
token : ${{ secrets.CODECOV_TOKEN }}
375
356
files : ./gotests.coverage
@@ -383,8 +364,6 @@ jobs:
383
364
# goroutines. Setting this to the timeout +5m should work quite well
384
365
# even if some of the preceding steps are slow.
385
366
timeout-minutes : 25
386
- needs : changes
387
- if : needs.changes.outputs.go == 'true'
388
367
steps :
389
368
- uses : actions/checkout@v3
390
369
@@ -539,8 +518,6 @@ jobs:
539
518
name : " test/js"
540
519
runs-on : ubuntu-latest
541
520
timeout-minutes : 20
542
- needs : changes
543
- if : needs.changes.outputs.ts == 'true'
544
521
steps :
545
522
- uses : actions/checkout@v3
546
523
@@ -579,8 +556,9 @@ jobs:
579
556
580
557
test-e2e :
581
558
name : " test/e2e/${{ matrix.os }}"
582
- needs : changes
583
- if : needs.changes.outputs.go == 'true' || needs.changes.outputs.ts == 'true' || needs.changes.outputs.tf == 'true'
559
+ needs :
560
+ - changes
561
+ if : needs.changes.outputs.docs-only == 'false'
584
562
runs-on : ${{ matrix.os }}
585
563
timeout-minutes : 20
586
564
strategy :
0 commit comments