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,16 @@ 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
70
needs : changes
95
- if : needs.changes.outputs.go == 'true'
96
71
runs-on : ubuntu-latest
97
72
steps :
98
73
- uses : actions/checkout@v3
109
84
timeout-minutes : 5
110
85
runs-on : ubuntu-latest
111
86
needs : changes
112
- if : needs.changes.outputs.sh == 'true'
113
87
steps :
114
88
- uses : actions/checkout@v3
115
89
- name : Run ShellCheck
122
96
style-lint-typescript :
123
97
name : " style/lint/typescript"
124
98
timeout-minutes : 5
125
- needs : changes
126
- if : needs.changes.outputs.docs-only == 'false'
127
99
runs-on : ubuntu-latest
128
100
steps :
129
101
- name : Checkout
@@ -207,8 +179,6 @@ jobs:
207
179
208
180
style-fmt :
209
181
name : " style/fmt"
210
- needs : changes
211
- if : needs.changes.outputs.docs-only == 'false'
212
182
runs-on : ubuntu-latest
213
183
timeout-minutes : 5
214
184
steps :
@@ -241,8 +211,6 @@ jobs:
241
211
242
212
test-go :
243
213
name : " test/go"
244
- needs : changes
245
- if : needs.changes.outputs.docs-only == 'false'
246
214
runs-on : ${{ matrix.os }}
247
215
timeout-minutes : 20
248
216
strategy :
@@ -328,12 +296,6 @@ jobs:
328
296
329
297
test-go-postgres :
330
298
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
299
runs-on : ubuntu-latest
338
300
# This timeout must be greater than the timeout set by `go test` in
339
301
# `make test-postgres` to ensure we receive a trace of running
@@ -514,8 +476,6 @@ jobs:
514
476
515
477
test-js :
516
478
name : " test/js"
517
- needs : changes
518
- if : needs.changes.outputs.docs-only == 'false'
519
479
runs-on : ubuntu-latest
520
480
timeout-minutes : 20
521
481
steps :
@@ -571,8 +531,7 @@ jobs:
571
531
name : " test/e2e/${{ matrix.os }}"
572
532
needs :
573
533
- changes
574
- - pr-context
575
- if : needs.changes.outputs.docs-only == 'false' && !contains(needs.pr-context.outputs.skips, 'test/e2e')
534
+ if : needs.changes.outputs.docs-only == 'false'
576
535
runs-on : ${{ matrix.os }}
577
536
timeout-minutes : 20
578
537
strategy :
0 commit comments