3
3
push :
4
4
branches :
5
5
- master
6
+ - milestone-1
6
7
pull_request :
7
8
branches :
8
9
- master
10
+ - milestone-1
9
11
10
12
jobs :
13
+ smoke-tests :
14
+ name : " Run smoke tests"
15
+ timeout-minutes : 30
16
+ runs-on : ubuntu-22.04
17
+ steps :
18
+ - name : Checkout
19
+ uses : actions/checkout@v2
20
+ with :
21
+ submodules : ' true'
22
+ - name : Install dependencies
23
+ run : |
24
+ sudo apt install zsh -y
25
+ make install_solc_linux
26
+ yarn install
27
+ - name : Compile contracts
28
+ run : ./testing/smoke_tests.sh
29
+
11
30
build-mock :
12
31
name : " Build Mock API"
13
32
timeout-minutes : 30
14
33
runs-on : ubuntu-22.04
34
+ needs : [smoke-tests]
15
35
steps :
16
36
- name : Checkout
17
37
uses : actions/checkout@v2
34
54
name : " SimpleCoin: end-to-end tests"
35
55
timeout-minutes : 30
36
56
runs-on : ubuntu-22.04
57
+ needs : [smoke-tests]
37
58
steps :
38
59
- name : Checkout
39
60
uses : actions/checkout@v2
@@ -62,10 +83,12 @@ jobs:
62
83
cd hardhat && yarn hardhat get-balance --contract $CONTRACT_ADDRESS --account $WALLET_ADDRESS
63
84
env :
64
85
PRIVATE_KEY : ${{ secrets.WALLET_PRIVATE_KEY }}
86
+
65
87
api-deploy :
66
88
name : " Filecoin APIs: deploy"
67
89
timeout-minutes : 30
68
90
runs-on : ubuntu-22.04
91
+ needs : [smoke-tests]
69
92
steps :
70
93
- name : Checkout
71
94
uses : actions/checkout@v2
@@ -93,10 +116,12 @@ jobs:
93
116
cat deploy_power.log
94
117
env :
95
118
PRIVATE_KEY : ${{ secrets.WALLET_PRIVATE_KEY }}
119
+
96
120
miner-integration :
97
121
name : " Miner API: integration tests"
98
122
timeout-minutes : 30
99
123
runs-on : ubuntu-22.04
124
+ needs : [smoke-tests]
100
125
steps :
101
126
- name : Checkout
102
127
uses : actions/checkout@v2
@@ -158,6 +183,7 @@ jobs:
158
183
name : " Market API: integration tests"
159
184
timeout-minutes : 30
160
185
runs-on : ubuntu-22.04
186
+ needs : [smoke-tests]
161
187
steps :
162
188
- name : Checkout
163
189
uses : actions/checkout@v2
@@ -215,12 +241,11 @@ jobs:
215
241
name : gas_results_market.csv
216
242
path : testing/gas_results_market.csv
217
243
218
-
219
-
220
244
power-integration :
221
245
name : " Power API: integration tests"
222
246
timeout-minutes : 30
223
247
runs-on : ubuntu-22.04
248
+ needs : [smoke-tests]
224
249
steps :
225
250
- name : Checkout
226
251
uses : actions/checkout@v2
@@ -282,6 +307,7 @@ jobs:
282
307
name : " VerifReg API: integration tests"
283
308
timeout-minutes : 30
284
309
runs-on : ubuntu-22.04
310
+ needs : [smoke-tests]
285
311
steps :
286
312
- name : Checkout
287
313
uses : actions/checkout@v2
@@ -343,6 +369,7 @@ jobs:
343
369
name : " DataCap API: integration tests"
344
370
timeout-minutes : 30
345
371
runs-on : ubuntu-22.04
372
+ needs : [smoke-tests]
346
373
steps :
347
374
- name : Checkout
348
375
uses : actions/checkout@v2
@@ -404,6 +431,7 @@ jobs:
404
431
name : " Account API: integration tests"
405
432
timeout-minutes : 30
406
433
runs-on : ubuntu-22.04
434
+ needs : [smoke-tests]
407
435
steps :
408
436
- name : Checkout
409
437
uses : actions/checkout@v2
@@ -465,6 +493,7 @@ jobs:
465
493
name : " Precompiles API: integration tests"
466
494
timeout-minutes : 30
467
495
runs-on : ubuntu-22.04
496
+ needs : [smoke-tests]
468
497
steps :
469
498
- name : Checkout
470
499
uses : actions/checkout@v2
@@ -526,6 +555,7 @@ jobs:
526
555
name : " Send API: integration tests"
527
556
timeout-minutes : 30
528
557
runs-on : ubuntu-22.04
558
+ needs : [smoke-tests]
529
559
steps :
530
560
- name : Checkout
531
561
uses : actions/checkout@v2
@@ -586,6 +616,7 @@ jobs:
586
616
frc0042-check :
587
617
name : " Check FRC0042 method number"
588
618
runs-on : ubuntu-22.04
619
+ needs : [smoke-tests]
589
620
steps :
590
621
- name : Checkout
591
622
uses : actions/checkout@v2
@@ -605,6 +636,7 @@ jobs:
605
636
name : " CBOR Decode Tests"
606
637
timeout-minutes : 30
607
638
runs-on : ubuntu-22.04
639
+ needs : [smoke-tests]
608
640
steps :
609
641
- name : Checkout
610
642
uses : actions/checkout@v2
@@ -657,13 +689,12 @@ jobs:
657
689
cd testing
658
690
rustup target add wasm32-unknown-unknown
659
691
cargo test cbor_decode_test
660
-
661
-
662
692
663
693
bigints-integration :
664
694
name : " BigInt Tests"
665
695
timeout-minutes : 30
666
696
runs-on : ubuntu-22.04
697
+ needs : [smoke-tests]
667
698
steps :
668
699
- name : Checkout
669
700
uses : actions/checkout@v2
@@ -721,6 +752,7 @@ jobs:
721
752
name : " Leb128 Tests"
722
753
timeout-minutes : 30
723
754
runs-on : ubuntu-22.04
755
+ needs : [smoke-tests]
724
756
steps :
725
757
- name : Checkout
726
758
uses : actions/checkout@v2
@@ -778,6 +810,7 @@ jobs:
778
810
name : " Address Tests"
779
811
timeout-minutes : 30
780
812
runs-on : ubuntu-22.04
813
+ needs : [smoke-tests]
781
814
steps :
782
815
- name : Checkout
783
816
uses : actions/checkout@v2
@@ -835,6 +868,7 @@ jobs:
835
868
name : " Deserialize Params Tests"
836
869
timeout-minutes : 30
837
870
runs-on : ubuntu-22.04
871
+ needs : [smoke-tests]
838
872
steps :
839
873
- name : Checkout
840
874
uses : actions/checkout@v2
@@ -888,12 +922,11 @@ jobs:
888
922
rustup target add wasm32-unknown-unknown
889
923
cargo test deserialize_params_tests
890
924
891
-
892
925
comment-result :
893
926
name : " Comment the result on PR"
894
927
runs-on : ubuntu-22.04
895
928
if : github.event_name == 'pull_request'
896
- needs : [account-integration, datacap-integration, market-integration, miner-integration, power-integration, precompiles-integration, send-integration, verifreg-integration]
929
+ needs : [smoke-tests, account-integration, datacap-integration, market-integration, miner-integration, power-integration, precompiles-integration, send-integration, verifreg-integration]
897
930
steps :
898
931
- name : " Get gas_results_account.csv"
899
932
uses : actions/download-artifact@v3
0 commit comments