4
4
push :
5
5
branches :
6
6
- main
7
- tags :
8
- - " *"
9
7
10
8
pull_request :
11
9
36
34
- name : Checkout
37
35
uses : actions/checkout@v2
38
36
- name : typos-action
39
- uses : crate-ci/typos@master
37
+ uses : crate-ci/typos@v1.12.8
40
38
with :
41
39
config : .github/workflows/typos.toml
42
40
- name : Fix Helper
@@ -64,12 +62,10 @@ jobs:
64
62
- '**'
65
63
docs:
66
64
- 'docs/**'
65
+ # For testing:
66
+ # - '.github/**'
67
67
sh:
68
68
- "**.sh"
69
- go:
70
- - "**.go"
71
- tf:
72
- - "**.tf"
73
69
ts:
74
70
- 'site/**'
75
71
k8s:
94
90
name : style/lint/golangci
95
91
timeout-minutes : 5
96
92
runs-on : ubuntu-latest
97
- needs : changes
98
- if : needs.changes.outputs.go == 'true'
99
93
steps :
100
94
- uses : actions/checkout@v3
101
95
- uses : actions/setup-go@v3
@@ -119,8 +113,6 @@ jobs:
119
113
name : style/lint/shellcheck
120
114
timeout-minutes : 5
121
115
runs-on : ubuntu-latest
122
- needs : changes
123
- if : needs.changes.outputs.sh == 'true'
124
116
steps :
125
117
- uses : actions/checkout@v3
126
118
- name : Run ShellCheck
@@ -134,8 +126,6 @@ jobs:
134
126
name : " style/lint/typescript"
135
127
timeout-minutes : 5
136
128
runs-on : ubuntu-latest
137
- needs : changes
138
- if : needs.changes.outputs.ts == 'true'
139
129
steps :
140
130
- name : Checkout
141
131
uses : actions/checkout@v3
@@ -255,8 +245,6 @@ jobs:
255
245
name : " style/fmt"
256
246
runs-on : ubuntu-latest
257
247
timeout-minutes : 5
258
- needs : changes
259
- if : needs.changes.outputs.sh == 'true' || needs.changes.outputs.ts == 'true' || needs.changes.outputs.tf == 'true'
260
248
steps :
261
249
- name : Checkout
262
250
uses : actions/checkout@v3
@@ -290,7 +278,6 @@ jobs:
290
278
name : " test/go"
291
279
runs-on : ${{ matrix.os }}
292
280
timeout-minutes : 20
293
- needs : changes
294
281
strategy :
295
282
matrix :
296
283
os :
@@ -299,36 +286,30 @@ jobs:
299
286
- windows-2022
300
287
steps :
301
288
- uses : actions/checkout@v3
302
- if : needs.changes.outputs.go == 'true'
303
289
304
290
- uses : actions/setup-go@v3
305
- if : needs.changes.outputs.go == 'true'
306
291
with :
307
292
go-version : " ~1.19"
308
293
309
294
- name : Echo Go Cache Paths
310
- if : needs.changes.outputs.go == 'true'
311
295
id : go-cache-paths
312
296
run : |
313
297
echo "::set-output name=go-build::$(go env GOCACHE)"
314
298
echo "::set-output name=go-mod::$(go env GOMODCACHE)"
315
299
316
300
- name : Go Build Cache
317
- if : needs.changes.outputs.go == 'true'
318
301
uses : actions/cache@v3
319
302
with :
320
303
path : ${{ steps.go-cache-paths.outputs.go-build }}
321
304
key : ${{ runner.os }}-go-build-${{ hashFiles('**/go.**', '**.go') }}
322
305
323
306
- name : Go Mod Cache
324
- if : needs.changes.outputs.go == 'true'
325
307
uses : actions/cache@v3
326
308
with :
327
309
path : ${{ steps.go-cache-paths.outputs.go-mod }}
328
310
key : ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
329
311
330
312
- name : Install gotestsum
331
- if : needs.changes.outputs.go == 'true'
332
313
uses : jaxxstorm/action-install-gh-release@v1.7.1
333
314
env :
334
315
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -337,13 +318,11 @@ jobs:
337
318
tag : v1.7.0
338
319
339
320
- uses : hashicorp/setup-terraform@v2
340
- if : needs.changes.outputs.go == 'true'
341
321
with :
342
322
terraform_version : 1.1.9
343
323
terraform_wrapper : false
344
324
345
325
- name : Test with Mock Database
346
- if : needs.changes.outputs.go == 'true'
347
326
id : test
348
327
shell : bash
349
328
run : |
@@ -369,7 +348,7 @@ jobs:
369
348
# that is no guarantee, see:
370
349
# https://github.com/codecov/codecov-action/issues/788
371
350
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'
351
+ if : steps.test.outputs.cover && github.actor != 'dependabot[bot]' && !github.event.pull_request.head.repo.fork
373
352
with :
374
353
token : ${{ secrets.CODECOV_TOKEN }}
375
354
files : ./gotests.coverage
@@ -383,8 +362,6 @@ jobs:
383
362
# goroutines. Setting this to the timeout +5m should work quite well
384
363
# even if some of the preceding steps are slow.
385
364
timeout-minutes : 25
386
- needs : changes
387
- if : needs.changes.outputs.go == 'true'
388
365
steps :
389
366
- uses : actions/checkout@v3
390
367
@@ -539,8 +516,6 @@ jobs:
539
516
name : " test/js"
540
517
runs-on : ubuntu-latest
541
518
timeout-minutes : 20
542
- needs : changes
543
- if : needs.changes.outputs.ts == 'true'
544
519
steps :
545
520
- uses : actions/checkout@v3
546
521
@@ -579,8 +554,9 @@ jobs:
579
554
580
555
test-e2e :
581
556
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'
557
+ needs :
558
+ - changes
559
+ if : needs.changes.outputs.docs-only == 'false'
584
560
runs-on : ${{ matrix.os }}
585
561
timeout-minutes : 20
586
562
strategy :
@@ -652,7 +628,7 @@ jobs:
652
628
with :
653
629
name : failed-test-videos
654
630
path : ./site/test-results/**/*.webm
655
- retention: days : 7
631
+ retention- days : 7
656
632
657
633
chromatic :
658
634
# REMARK: this is only used to build storybook and deploy it to Chromatic.
@@ -698,3 +674,10 @@ jobs:
698
674
buildScriptName : " storybook:build"
699
675
projectToken : 695c25b6cb65
700
676
workingDir : " ./site"
677
+ markdown-link-check :
678
+ runs-on : ubuntu-latest
679
+ steps :
680
+ - uses : actions/checkout@master
681
+ - uses : gaurav-nelson/github-action-markdown-link-check@v1
682
+ with :
683
+ config-file : .github/workflows/mlc_config.json
0 commit comments