@@ -33,32 +33,28 @@ jobs:
33
33
shell : bash
34
34
if : matrix.os == 'windows-2022'
35
35
run : echo "TIMEOUT=240s" >> "$GITHUB_ENV"
36
- - name : build_test
36
+ - name : test-unit
37
37
shell : bash
38
- run : ./scripts/build_test .sh
38
+ run : ./scripts/run_task .sh test-unit
39
39
env :
40
40
TIMEOUT : ${{ env.TIMEOUT }}
41
41
Fuzz :
42
42
runs-on : ubuntu-latest
43
43
steps :
44
44
- uses : actions/checkout@v4
45
45
- uses : ./.github/actions/setup-go-for-project
46
- - name : fuzz_test
46
+ - name : test-fuzz
47
47
shell : bash
48
- run : ./scripts/build_fuzz .sh 10 # Run each fuzz test 10 seconds
48
+ run : ./scripts/run_task .sh test-fuzz
49
49
e2e :
50
50
runs-on : ubuntu-latest
51
51
steps :
52
52
- uses : actions/checkout@v4
53
53
- uses : ./.github/actions/setup-go-for-project
54
- - name : Build AvalancheGo Binary
55
- shell : bash
56
- run : ./scripts/build.sh -r
57
54
- name : Run e2e tests
58
55
uses : ./.github/actions/run-monitored-tmpnet-cmd
59
56
with :
60
- run : ./scripts/tests.e2e.sh
61
- run_env : E2E_SERIAL=1
57
+ run : ./scripts/run_task.sh test-e2e-ci
62
58
artifact_prefix : e2e
63
59
filter_by_owner : avalanchego-e2e
64
60
prometheus_username : ${{ secrets.PROMETHEUS_ID || '' }}
@@ -70,14 +66,10 @@ jobs:
70
66
steps :
71
67
- uses : actions/checkout@v4
72
68
- uses : ./.github/actions/setup-go-for-project
73
- - name : Build AvalancheGo Binary
74
- shell : bash
75
- run : ./scripts/build.sh -r
76
69
- name : Run e2e tests
77
70
uses : ./.github/actions/run-monitored-tmpnet-cmd
78
71
with :
79
- run : ./scripts/tests.e2e.sh --activate-fortuna
80
- run_env : E2E_SERIAL=1
72
+ run : ./scripts/run_task.sh test-e2e-ci -- --activate-fortuna
81
73
artifact_prefix : e2e-post-fortuna
82
74
filter_by_owner : avalanchego-e2e
83
75
prometheus_username : ${{ secrets.PROMETHEUS_ID || '' }}
@@ -89,14 +81,10 @@ jobs:
89
81
steps :
90
82
- uses : actions/checkout@v4
91
83
- uses : ./.github/actions/setup-go-for-project
92
- - name : Build AvalancheGo Binary
93
- shell : bash
94
- run : ./scripts/build.sh -r
95
84
- name : Run e2e tests with existing network
96
85
uses : ./.github/actions/run-monitored-tmpnet-cmd
97
86
with :
98
- run : ./scripts/tests.e2e.existing.sh
99
- run_env : E2E_SERIAL=1
87
+ run : ./scripts/run_task.sh test-e2e-existing-ci
100
88
artifact_prefix : e2e-existing-network
101
89
prometheus_username : ${{ secrets.PROMETHEUS_ID || '' }}
102
90
prometheus_password : ${{ secrets.PROMETHEUS_PASSWORD || '' }}
@@ -107,14 +95,11 @@ jobs:
107
95
steps :
108
96
- uses : actions/checkout@v4
109
97
- uses : ./.github/actions/setup-go-for-project
110
- - name : Build AvalancheGo Binary
111
- shell : bash
112
- run : ./scripts/build.sh
113
98
# TODO: Reactivate test once v1.13.0 is published
114
99
# - name: Run e2e tests
115
100
# uses: ./.github/actions/run-monitored-tmpnet-cmd
116
101
# with:
117
- # run: ./scripts/tests.upgrade.sh
102
+ # run: ./scripts/run_task.sh test-upgrade
118
103
# artifact_prefix: upgrade
119
104
# prometheus_username: ${{ secrets.PROMETHEUS_ID || '' }}
120
105
# prometheus_password: ${{ secrets.PROMETHEUS_PASSWORD || '' }}
@@ -125,16 +110,10 @@ jobs:
125
110
steps :
126
111
- uses : actions/checkout@v4
127
112
- uses : ./.github/actions/setup-go-for-project
128
- - name : Run static analysis tests
129
- shell : bash
130
- run : scripts/lint.sh
131
- - name : Run actionlint
132
- shell : bash
133
- run : scripts/actionlint.sh
134
113
- uses : ./.github/actions/install-nix
135
- - name : Run shellcheck
136
- shell : bash
137
- run : nix develop --command bash -x scripts/shellcheck .sh
114
+ - name : Runs all lint checks
115
+ shell : nix develop --command bash -x {0}
116
+ run : ./ scripts/run_task .sh lint-all-ci
138
117
buf-lint :
139
118
name : Protobuf Lint
140
119
runs-on : ubuntu-latest
@@ -161,40 +140,31 @@ jobs:
161
140
# Use the dev shell instead of bufbuild/buf-action to ensure the dev shell provides the expected versions
162
141
- uses : ./.github/actions/install-nix
163
142
- shell : nix develop --command bash -x {0}
164
- run : scripts/protobuf_codegen.sh
165
- - shell : bash
166
- run : .github/workflows/check-clean-branch.sh
143
+ run : ./scripts/run_task.sh check-generate-protobuf
167
144
check_mockgen :
168
145
name : Up-to-date mocks
169
146
runs-on : ubuntu-latest
170
147
steps :
171
148
- uses : actions/checkout@v4
172
149
- uses : ./.github/actions/setup-go-for-project
173
150
- shell : bash
174
- run : |
175
- grep -lr -E '^// Code generated by MockGen\. DO NOT EDIT\.$' . | xargs -r rm
176
- go generate -run "go.uber.org/mock/mockgen" ./...
177
- .github/workflows/check-clean-branch.sh
151
+ run : ./scripts/run_task.sh check-generate-mocks
178
152
check_canotogen :
179
153
name : Up-to-date canoto
180
154
runs-on : ubuntu-latest
181
155
steps :
182
156
- uses : actions/checkout@v4
183
157
- uses : ./.github/actions/setup-go-for-project
184
158
- shell : bash
185
- run : go generate -run "github.com/StephenButtolph/canoto/canoto" ./...
186
- - shell : bash
187
- run : .github/workflows/check-clean-branch.sh
159
+ run : ./scripts/run_task.sh check-generate-canoto
188
160
go_mod_tidy :
189
161
name : Up-to-date go.mod and go.sum
190
162
runs-on : ubuntu-latest
191
163
steps :
192
164
- uses : actions/checkout@v4
193
165
- uses : ./.github/actions/setup-go-for-project
194
166
- shell : bash
195
- run : go mod tidy
196
- - shell : bash
197
- run : .github/workflows/check-clean-branch.sh
167
+ run : ./scripts/run_task.sh check-go-mod-tidy
198
168
test_build_image :
199
169
name : Image build
200
170
runs-on : ubuntu-latest
@@ -206,52 +176,32 @@ jobs:
206
176
sudo apt -y install qemu-system qemu-user-static
207
177
- name : Check image build
208
178
shell : bash
209
- run : bash -x scripts/tests.build_image.sh
179
+ run : ./ scripts/run_task.sh test-build-image
210
180
test_build_antithesis_avalanchego_images :
211
181
name : Build Antithesis avalanchego images
212
182
runs-on : ubuntu-latest
213
183
steps :
214
184
- uses : actions/checkout@v4
215
185
- uses : ./.github/actions/setup-go-for-project
216
- - name : Build AvalancheGo Binary
217
- shell : bash
218
- run : ./scripts/build.sh -r
219
- - name : Check that the avalanchego workload is sane
220
- shell : bash
221
- run : go run ./tests/antithesis/avalanchego --avalanchego-path=./build/avalanchego --duration=120s
222
186
- name : Check image build for avalanchego test setup
223
187
shell : bash
224
- run : bash -x scripts/tests.build_antithesis_images.sh
225
- env :
226
- TEST_SETUP : avalanchego
188
+ run : ./scripts/run_task.sh test-build-antithesis-images-avalanchego
227
189
test_build_antithesis_xsvm_images :
228
190
name : Build Antithesis xsvm images
229
191
runs-on : ubuntu-latest
230
192
steps :
231
193
- uses : actions/checkout@v4
232
194
- uses : ./.github/actions/setup-go-for-project
233
- - name : Build AvalancheGo Binary
234
- shell : bash
235
- run : ./scripts/build.sh -r
236
- - name : Build xsvm binary
237
- shell : bash
238
- run : ./scripts/build_xsvm.sh
239
- - name : Check that the xsvm workload is sane
240
- shell : bash
241
- run : go run ./tests/antithesis/xsvm --avalanchego-path=./build/avalanchego --duration=120s
242
195
- name : Check image build for xsvm test setup
243
196
shell : bash
244
- run : bash -x scripts/tests.build_antithesis_images.sh
245
- env :
246
- TEST_SETUP : xsvm
197
+ run : ./scripts/run_task.sh test-build-antithesis-images-xsvm
247
198
e2e_bootstrap_monitor :
248
199
name : Run bootstrap monitor e2e tests
249
200
runs-on : ubuntu-latest
250
201
steps :
251
202
- uses : actions/checkout@v4
252
203
- uses : ./.github/actions/setup-go-for-project
253
204
- uses : ./.github/actions/install-nix
254
- - run : nix develop --command echo "dependencies installed"
255
205
- name : Run e2e tests
256
206
shell : bash
257
- run : nix develop --command bash -x ./scripts/tests.e2e.bootstrap_monitor.sh
207
+ run : nix develop --command ./scripts/run_task.sh test-bootstrap-monitor-e2e
0 commit comments