34
34
runs-on : ubuntu-latest
35
35
outputs :
36
36
docs-only : ${{ steps.filter.outputs.docs_count == steps.filter.outputs.all_count }}
37
- go : ${{ steps.filter.outputs.go }}
38
37
sh : ${{ steps.filter.outputs.sh }}
39
38
steps :
40
39
- uses : actions/checkout@v3
49
48
- 'docs/**'
50
49
# For testing:
51
50
# - '.github/**'
52
- go:
53
- - "**.go"
54
- - "**.mod"
55
- - "**.sum"
56
51
sh:
57
52
- "**.sh"
58
53
- id : debug
@@ -63,36 +58,15 @@ jobs:
63
58
debug-inputs :
64
59
needs :
65
60
- changes
66
- - pr-context
67
61
runs-on : ubuntu-latest
68
62
steps :
69
63
- id : log
70
64
run : |
71
65
echo "${{ toJSON(needs) }}"
72
- echo "${{ contains(needs.pr-context.outputs.skips, 'test/go/postgres') }} "
73
- echo "${{ contains(needs.pr-context.outputs.skips, 'test/e2e') }} "
74
-
75
- pr-context :
76
- runs-on : ubuntu-latest
77
- outputs :
78
- skips : ${{ steps.pr-context.outputs.skips }}
79
- steps :
80
- - uses : actions/checkout@v3
81
- - uses : actions/setup-go@v3
82
- with :
83
- go-version : " ~1.18"
84
- - id : pr-context
85
- env :
86
- GITHUB_CONTEXT : ${{ toJSON(github) }}
87
- run : |
88
- (cd .github/workflows/prcontext && go build)
89
- ./.github/workflows/prcontext/prcontext
90
66
91
67
style-lint-golangci :
92
68
name : style/lint/golangci
93
69
timeout-minutes : 5
94
- needs : changes
95
- if : needs.changes.outputs.go == 'true'
96
70
runs-on : ubuntu-latest
97
71
steps :
98
72
- uses : actions/checkout@v3
108
82
name : style/lint/shellcheck
109
83
timeout-minutes : 5
110
84
runs-on : ubuntu-latest
111
- needs : changes
112
- if : needs.changes.outputs.sh == 'true'
113
85
steps :
114
86
- uses : actions/checkout@v3
115
87
- name : Run ShellCheck
122
94
style-lint-typescript :
123
95
name : " style/lint/typescript"
124
96
timeout-minutes : 5
125
- needs : changes
126
- if : needs.changes.outputs.docs-only == 'false'
127
97
runs-on : ubuntu-latest
128
98
steps :
129
99
- name : Checkout
@@ -207,8 +177,6 @@ jobs:
207
177
208
178
style-fmt :
209
179
name : " style/fmt"
210
- needs : changes
211
- if : needs.changes.outputs.docs-only == 'false'
212
180
runs-on : ubuntu-latest
213
181
timeout-minutes : 5
214
182
steps :
@@ -241,8 +209,6 @@ jobs:
241
209
242
210
test-go :
243
211
name : " test/go"
244
- needs : changes
245
- if : needs.changes.outputs.docs-only == 'false'
246
212
runs-on : ${{ matrix.os }}
247
213
timeout-minutes : 20
248
214
strategy :
@@ -328,12 +294,6 @@ jobs:
328
294
329
295
test-go-postgres :
330
296
name : " test/go/postgres"
331
- needs :
332
- - changes
333
- - pr-context
334
- if : >
335
- needs.changes.outputs.docs-only == 'false' &&
336
- !contains(needs.pr-context.outputs.skips, 'test/go/postgres')
337
297
runs-on : ubuntu-latest
338
298
# This timeout must be greater than the timeout set by `go test` in
339
299
# `make test-postgres` to ensure we receive a trace of running
@@ -514,8 +474,6 @@ jobs:
514
474
515
475
test-js :
516
476
name : " test/js"
517
- needs : changes
518
- if : needs.changes.outputs.docs-only == 'false'
519
477
runs-on : ubuntu-latest
520
478
timeout-minutes : 20
521
479
steps :
@@ -571,8 +529,7 @@ jobs:
571
529
name : " test/e2e/${{ matrix.os }}"
572
530
needs :
573
531
- changes
574
- - pr-context
575
- if : needs.changes.outputs.docs-only == 'false' && !contains(needs.pr-context.outputs.skips, 'test/e2e')
532
+ if : needs.changes.outputs.docs-only == 'false'
576
533
runs-on : ${{ matrix.os }}
577
534
timeout-minutes : 20
578
535
strategy :
0 commit comments