1
- name : CI checks
1
+ name : Main tests
2
2
3
3
on :
4
4
merge_group :
@@ -28,13 +28,13 @@ jobs:
28
28
concurrent_skipping : ' same_content_newer'
29
29
paths_ignore : ' ["**/README.md"]'
30
30
31
- test :
31
+ lighttest :
32
32
needs : [skip_check]
33
33
if : |
34
34
github.event.pull_request.draft == false &&
35
35
(github.event.action == 'ready_for_review' || needs.skip_check.outputs.should_skip != 'true')
36
36
37
- name : Test
37
+ name : Light unit tests
38
38
runs-on : ["${{github.run_id}}", self-hosted, c5.9xlarge]
39
39
40
40
steps :
@@ -71,124 +71,30 @@ jobs:
71
71
with :
72
72
command : test
73
73
args : --verbose --release --all --all-features --exclude integration-tests --exclude circuit-benchmarks
74
- - name : Run heavy tests # heavy tests are run serially to avoid OOM
75
- uses : actions-rs/cargo@v1
76
- with :
77
- command : test
78
- args : --verbose --release --all --all-features --exclude integration-tests --exclude circuit-benchmarks serial_ -- --ignored --test-threads 1
79
74
- name : Run testool internal tests
80
75
uses : actions-rs/cargo@v1
81
76
with :
82
77
command : test
83
78
args : --release --manifest-path testool/Cargo.toml
84
- build :
85
- needs : [skip_check]
86
- if : |
87
- github.event.pull_request.draft == false &&
88
- (github.event.action == 'ready_for_review' || needs.skip_check.outputs.should_skip != 'true')
89
-
90
- name : Build target ${{ matrix.target }}
91
- runs-on : ubuntu-latest
92
- strategy :
93
- matrix :
94
- target :
95
- - wasm32-unknown-unknown
96
- - wasm32-wasi
97
-
98
- steps :
99
- - uses : actions/checkout@v2
100
- - uses : actions-rs/toolchain@v1
101
- with :
102
- override : false
103
- - name : Add target
104
- run : rustup target add ${{ matrix.target }}
105
- # Go cache for building geth-utils
106
- - name : Go cache
107
- uses : actions/cache@v3
108
- with :
109
- path : |
110
- ~/.cache/go-build
111
- ~/go/pkg/mod
112
- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
113
- restore-keys : |
114
- ${{ runner.os }}-go-
115
- - name : Cargo cache
116
- uses : actions/cache@v3
117
- with :
118
- path : |
119
- ~/.cargo/bin/
120
- ~/.cargo/registry/index/
121
- ~/.cargo/registry/cache/
122
- ~/.cargo/git/db/
123
- target/
124
- key : ${{ runner.os }}-${{ matrix.target }}-cargo-${{ hashFiles('**/Cargo.lock') }}
125
- - name : cargo build
126
- uses : actions-rs/cargo@v1
127
- with :
128
- command : build
129
- args : --all-features
130
- # Make sure benchmarks compile.
131
- - name : cargo build benchmarks no-run
132
- uses : actions-rs/cargo@v1
133
- with :
134
- command : test
135
- args : --verbose --release --all-features -p circuit-benchmarks --no-run
136
79
137
- bitrot :
80
+ heavytests :
138
81
needs : [skip_check]
139
82
if : |
140
83
github.event.pull_request.draft == false &&
141
84
(github.event.action == 'ready_for_review' || needs.skip_check.outputs.should_skip != 'true')
142
85
143
- name : Bitrot check
144
- runs-on : ubuntu-latest
86
+ name : Heavy unit tests
87
+ runs-on : ["${{github.run_id}}", self-hosted, c5.9xlarge]
145
88
146
89
steps :
147
90
- uses : actions/checkout@v2
148
91
- uses : actions-rs/toolchain@v1
149
92
with :
150
93
override : false
151
- # Go cache for building geth-utils
152
- - name : Go cache
153
- uses : actions/cache@v3
154
- with :
155
- path : |
156
- ~/.cache/go-build
157
- ~/go/pkg/mod
158
- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
159
- restore-keys : |
160
- ${{ runner.os }}-go-
161
- - name : Cargo cache
162
- uses : actions/cache@v3
163
- with :
164
- path : |
165
- ~/.cargo/bin/
166
- ~/.cargo/registry/index/
167
- ~/.cargo/registry/cache/
168
- ~/.cargo/git/db/
169
- target/
170
- key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
171
- # Build benchmarks to prevent bitrot
172
- - name : Build benchmarks
173
- uses : actions-rs/cargo@v1
174
- with :
175
- command : build
176
- args : --benches --examples --all-features
177
-
178
- doc-links :
179
- needs : [skip_check]
180
- if : |
181
- github.event.pull_request.draft == false &&
182
- (github.event.action == 'ready_for_review' || needs.skip_check.outputs.should_skip != 'true')
183
-
184
- name : Intra-doc links
185
- runs-on : ubuntu-latest
186
-
187
- steps :
188
- - uses : actions/checkout@v2
189
- - uses : actions-rs/toolchain@v1
94
+ - name : Setup golang
95
+ uses : actions/setup-go@v3
190
96
with :
191
- override : false
97
+ go-version : ~1.19
192
98
# Go cache for building geth-utils
193
99
- name : Go cache
194
100
uses : actions/cache@v3
@@ -209,33 +115,32 @@ jobs:
209
115
~/.cargo/git/db/
210
116
target/
211
117
key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
212
- - name : cargo fetch
213
- uses : actions-rs/cargo@v1
214
- with :
215
- command : fetch
216
-
217
- # Ensure intra-documentation links all resolve correctly
218
- # Requires #![deny(intra_doc_link_resolution_failure)] in crates.
219
- - name : Check intra-doc links
118
+ - name : Run heavy tests # heavy tests are run serially to avoid OOM
220
119
uses : actions-rs/cargo@v1
221
120
with :
222
- command : doc
223
- args : --no-deps --all --document-private-items
121
+ command : test
122
+ args : --verbose --release --all --all-features --exclude integration-tests --exclude circuit-benchmarks serial_ -- --ignored --test-threads 1
224
123
225
- fmt :
124
+ build :
226
125
needs : [skip_check]
227
126
if : |
228
127
github.event.pull_request.draft == false &&
229
128
(github.event.action == 'ready_for_review' || needs.skip_check.outputs.should_skip != 'true')
230
129
231
- name : Rustfmt
232
- timeout-minutes : 30
130
+ name : Build target ${{ matrix.target }}
233
131
runs-on : ubuntu-latest
132
+ strategy :
133
+ matrix :
134
+ target :
135
+ - x86_64-unknown-linux-gnu
136
+
234
137
steps :
235
138
- uses : actions/checkout@v2
236
139
- uses : actions-rs/toolchain@v1
237
140
with :
238
141
override : false
142
+ - name : Add target
143
+ run : rustup target add ${{ matrix.target }}
239
144
# Go cache for building geth-utils
240
145
- name : Go cache
241
146
uses : actions/cache@v3
@@ -255,14 +160,9 @@ jobs:
255
160
~/.cargo/registry/cache/
256
161
~/.cargo/git/db/
257
162
target/
258
- key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
259
- - name : cargo check
163
+ key : ${{ runner.os }}-${{ matrix.target }}- cargo-${{ hashFiles('**/Cargo.lock') }}
164
+ - name : cargo build
260
165
uses : actions-rs/cargo@v1
261
166
with :
262
- command : check
167
+ command : build
263
168
args : --all-features
264
- - run : rustup component add rustfmt
265
- - uses : actions-rs/cargo@v1
266
- with :
267
- command : fmt
268
- args : --all -- --check
0 commit comments