-
Notifications
You must be signed in to change notification settings - Fork 6
252 lines (241 loc) · 6.31 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
name: CI
on:
push:
branches:
- "**"
env:
WSS_URL: ws://127.0.0.1:9955
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.1.4
- uses: actions/setup-node@v4
with:
node-version: 23
cache: "pnpm"
- run: pnpm install
- run: pnpm run build
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.1.4
- uses: actions/setup-node@v4
with:
node-version: 23
cache: "pnpm"
- run: pnpm install
- run: pnpm run lint
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.1.4
- uses: actions/setup-node@v4
with:
node-version: 23
cache: "pnpm"
- run: pnpm install
- run: pnpm run fmt
test_basic:
runs-on: ubuntu-latest
needs: ["build"]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.1.4
- uses: actions/setup-node@v4
with:
node-version: 23
cache: "pnpm"
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Build like before
run: |
pnpm install
pnpm run build
- name: Run standard dev test
run: |
cd test
bun moonwall test basic
test_tanssi:
runs-on: ubuntu-latest
needs: ["build"]
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- uses: pnpm/action-setup@v4
with:
version: 9.1.4
- uses: actions/setup-node@v4
with:
node-version: 23
cache: "pnpm"
- name: Build like before
run: |
pnpm install
pnpm run build
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Download tanssi binary
run: |
cd test
bun moonwall download tanssi-node latest ./tmp
- name: Run standard dev test
run: |
cd test
bun moonwall test dev_tanssi
test_dev:
runs-on: ubuntu-latest
needs: ["build"]
env:
NODE_OPTIONS: "--no-deprecation"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
fail-fast: false
matrix:
suite: ["dev_test", "dev_multi", "dev_seq", "dev_smoke", "papi_dev"]
shard: [1, 2, 3, 4]
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- uses: pnpm/action-setup@v4
with:
version: 9.1.4
- uses: actions/setup-node@v4
with:
node-version: 23
cache: "pnpm"
- name: Build like before
run: |
pnpm install
pnpm run build
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Download moonbeam binary
run: |
cd test
bun moonwall download moonbeam latest ./tmp
- name: Run ${{matrix.suite}} dev test
run: |
cd test
bun papi generate
bun moonwall test ${{matrix.suite}} --ts ${{ matrix.shard }}/4
test_chopsticks:
runs-on: ubuntu-latest
needs: ["build"]
strategy:
fail-fast: false
matrix:
suite: ["chopsticks", "multi_chopsticks", "chopsticks_round"]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.1.4
- uses: actions/setup-node@v4
with:
node-version: 23
cache: "pnpm"
- name: Build like before
run: |
pnpm install
pnpm run build
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Run ${{matrix.suite}}
run: |
cd test
bun moonwall test ${{matrix.suite}}
# disabled until we have an available instance of moonscope running
# - name: Use Send Report Action
# if: always()
# uses: ./.github/send-report-action
# with:
# table: dev_reports
# moonwallenv: moonwall_chopsticks
# report_file_path: tmp/testReports.json
# moonscope: "https://moonscope.boo:3345"
test_readonly:
runs-on: ubuntu-latest
needs: ["build"]
strategy:
fail-fast: false
matrix:
suite: ["eth_test", "viem_test", "papi_readonly"]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.1.4
- uses: actions/setup-node@v4
with:
node-version: 23
cache: "pnpm"
- name: Build like before
run: |
pnpm install
pnpm run build
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Run standard ${{matrix.suite}}
run: |
cd test
bun papi add dot -n polkadot
bun moonwall test ${{matrix.suite}}
# disabled until web3.js fix their stuff
# - name: Run standard web3 run
# run: bun moonwall test web3_test
test_zombie:
runs-on: ubuntu-latest
needs: ["build"]
strategy:
fail-fast: false
matrix:
suite: ["zombie_test", "zombie_multi_para", "zombie_noPara"]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9.1.4
- uses: actions/setup-node@v4
with:
node-version: 23
cache: "pnpm"
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Build like before
run: |
pnpm install
pnpm run build
- name: Download binaries
run: |
cd test
bun moonwall download moonbeam latest ./tmp
bun moonwall download polkadot stable2407 ./tmp
bun moonwall download polkadot-execute-worker stable2407 ./tmp
bun moonwall download polkadot-prepare-worker stable2407 ./tmp
- name: Run ${{matrix.suite}}
run: |
cd test
bun moonwall test ${{matrix.suite}}