4
4
push :
5
5
branches :
6
6
- master
7
+
7
8
pull_request :
8
9
branches :
9
10
- master
10
11
12
+ concurrency :
13
+ group : ${{ github.head_ref }}
14
+ cancel-in-progress : true
15
+
11
16
env :
12
17
# Increment these to force cache rebuilding
13
- SYSTEM_CONTRACTS_CACHE_VERSION : 2
14
- CHECKOUT_MONOREPO_CACHE_VERSION : 4
18
+ SYSTEM_CONTRACTS_CACHE_VERSION : 3
19
+ CHECKOUT_MONOREPO_CACHE_VERSION : 5
15
20
GO_VERSION : ' 1.17.5'
16
21
# Location where compiled system contracts are stored under the root of this
17
22
# repo.
20
25
jobs :
21
26
prepare-system-contracts :
22
27
name : Build celo-monorepo
23
- runs-on : ubuntu-latest
28
+ runs-on : [self-hosted, blockchain, 8-cpu]
24
29
env :
25
30
NODE_VERSION : 12
26
31
PYTHON_VERSION : ' 2.7'
81
86
82
87
go-modules :
83
88
name : Setup go
84
- runs-on : ubuntu-latest
89
+ runs-on : [self-hosted, blockchain, 8-cpu]
85
90
86
91
steps :
87
92
- name : Checkout repo
96
101
check-imports :
97
102
name : Check imports
98
103
needs : go-modules
99
- runs-on : ubuntu-latest
104
+ runs-on : [self-hosted, blockchain, 8-cpu]
100
105
101
106
steps :
102
107
- name : Checkout repo
@@ -112,7 +117,7 @@ jobs:
112
117
113
118
lint :
114
119
name : Lint code
115
- runs-on : ubuntu-latest
120
+ runs-on : [self-hosted, blockchain, 8-cpu]
116
121
needs : go-modules
117
122
118
123
steps :
@@ -129,7 +134,7 @@ jobs:
129
134
130
135
unit-tests :
131
136
name : Unit tests
132
- runs-on : ubuntu-latest-4-cores
137
+ runs-on : [self-hosted, blockchain, 8-cpu]
133
138
needs :
134
139
- go-modules
135
140
- prepare-system-contracts
@@ -157,7 +162,7 @@ jobs:
157
162
- name : Generate test report
158
163
if : always()
159
164
run : |
160
- go-junit-report -set-exit-code < go-test.out > report.xml
165
+ go-junit-report -set-exit-code < go-test.out | tee -a report.xml
161
166
- name : Test summary
162
167
id : unit-tests-summary
163
168
if : always()
@@ -181,7 +186,7 @@ jobs:
181
186
race :
182
187
name : Data race detector
183
188
if : ${{ github.ref == 'refs/heads/master' || contains(github.ref, 'release') }}
184
- runs-on : ubuntu-latest-4-cores
189
+ runs-on : [self-hosted, blockchain, 8-cpu]
185
190
needs :
186
191
- go-modules
187
192
- prepare-system-contracts
@@ -218,7 +223,7 @@ jobs:
218
223
219
224
build-and-store-binaries :
220
225
name : Build and store binaries
221
- runs-on : ubuntu-latest
226
+ runs-on : [self-hosted, blockchain, 8-cpu]
222
227
needs :
223
228
- go-modules
224
229
@@ -242,7 +247,7 @@ jobs:
242
247
243
248
istanbul-e2e-coverage :
244
249
name : Istanbul consensus coverage
245
- runs-on : ubuntu-latest-4-cores
250
+ runs-on : [self-hosted, blockchain, 8-cpu]
246
251
# Needed to publish the summary PR comment
247
252
permissions :
248
253
pull-requests : write
@@ -291,7 +296,7 @@ jobs:
291
296
292
297
lightest-sync-test :
293
298
name : Lightest sync test
294
- runs-on : ubuntu-latest
299
+ runs-on : [self-hosted, blockchain, 8-cpu]
295
300
296
301
needs :
297
302
- build-and-store-binaries
@@ -319,7 +324,7 @@ jobs:
319
324
320
325
e2e-benchmarks :
321
326
name : End-to-end benchmarks
322
- runs-on : ubuntu-latest-4-cores
327
+ runs-on : [self-hosted, blockchain, 8-cpu]
323
328
324
329
needs :
325
330
- go-modules
@@ -353,7 +358,7 @@ jobs:
353
358
354
359
end-to-end-blockchain-parameters-test :
355
360
name : End-to-end blockchain parameters test
356
- runs-on : ubuntu-latest-4-cores
361
+ runs-on : [self-hosted, blockchain, 8-cpu]
357
362
env :
358
363
NODE_VERSION : 12
359
364
@@ -399,7 +404,7 @@ jobs:
399
404
400
405
end-to-end-governance-test :
401
406
name : End-to-end governance test
402
- runs-on : ubuntu-latest-4-cores
407
+ runs-on : [self-hosted, blockchain, 8-cpu]
403
408
env :
404
409
NODE_VERSION : 12
405
410
@@ -446,7 +451,7 @@ jobs:
446
451
447
452
end-to-end-sync-test :
448
453
name : End-to-end sync test
449
- runs-on : ubuntu-latest-4-cores
454
+ runs-on : [self-hosted, blockchain, 8-cpu]
450
455
env :
451
456
NODE_VERSION : 12
452
457
@@ -492,7 +497,7 @@ jobs:
492
497
493
498
end-to-end-slashing-test :
494
499
name : End-to-end slashing test
495
- runs-on : ubuntu-latest-4-cores
500
+ runs-on : [self-hosted, blockchain, 8-cpu]
496
501
env :
497
502
NODE_VERSION : 12
498
503
@@ -538,7 +543,7 @@ jobs:
538
543
539
544
end-to-end-transfers-test :
540
545
name : End-to-end transfers test
541
- runs-on : ubuntu-latest-4-cores
546
+ runs-on : [self-hosted, blockchain, 8-cpu]
542
547
env :
543
548
NODE_VERSION : 12
544
549
@@ -584,7 +589,7 @@ jobs:
584
589
585
590
end-to-end-validator-order-test :
586
591
name : End-to-end validator order test
587
- runs-on : ubuntu-latest-4-cores
592
+ runs-on : [self-hosted, blockchain, 8-cpu]
588
593
env :
589
594
NODE_VERSION : 12
590
595
@@ -630,7 +635,7 @@ jobs:
630
635
631
636
end-to-end-cip35-eth-compatibility-test :
632
637
name : End-to-end CIP35-eth compatibility test
633
- runs-on : ubuntu-latest-4-cores
638
+ runs-on : [self-hosted, blockchain, 8-cpu]
634
639
env :
635
640
NODE_VERSION : 12
636
641
@@ -676,7 +681,7 @@ jobs:
676
681
677
682
end-to-end-replica-test :
678
683
name : End-to-end replica test
679
- runs-on : ubuntu-latest-4-cores
684
+ runs-on : [self-hosted, blockchain, 8-cpu]
680
685
env :
681
686
NODE_VERSION : 12
682
687
0 commit comments