@@ -42,25 +42,45 @@ jobs:
4242 name : stateless-build
4343 path : stateless-build.tar
4444
45- build-stateful :
45+ build-stateful-sepolia :
4646 runs-on : blacksmith-4vcpu-ubuntu-2404
4747 steps :
4848 - uses : actions/checkout@v4
4949 - uses : ./.github/actions/setup
5050
51- - name : Build stateful and export
51+ - name : Build stateful sepolia and export
5252 run : |
5353 export NEXT_PUBLIC_CHAIN_NAME=sepolia
5454 pnpm build && pnpm export
5555
56- - name : Tar stateful files
57- run : tar -cvf stateful-build.tar out
56+ - name : Tar stateful sepolia files
57+ run : tar -cvf stateful-sepolia- build.tar out
5858
59- - name : Upload stateful
59+ - name : Upload stateful sepolia
6060 uses : actions/upload-artifact@v4
6161 with :
62- name : stateful-build
63- path : stateful-build.tar
62+ name : stateful-sepolia-build
63+ path : stateful-sepolia-build.tar
64+
65+ build-stateful-mainnet :
66+ runs-on : blacksmith-4vcpu-ubuntu-2404
67+ steps :
68+ - uses : actions/checkout@v4
69+ - uses : ./.github/actions/setup
70+
71+ - name : Build stateful mainnet and export
72+ run : |
73+ export NEXT_PUBLIC_CHAIN_NAME=mainnet
74+ pnpm build && pnpm export
75+
76+ - name : Tar stateful mainnet files
77+ run : tar -cvf stateful-mainnet-build.tar out
78+
79+ - name : Upload stateful mainnet
80+ uses : actions/upload-artifact@v4
81+ with :
82+ name : stateful-mainnet-build
83+ path : stateful-mainnet-build.tar
6484
6585 stateless :
6686 name : stateless (${{matrix.shard}})
@@ -134,9 +154,9 @@ jobs:
134154 retention-days : 30
135155 overwrite : true
136156
137- stateful :
138- name : stateful (${{matrix.shard}})
139- needs : build-stateful
157+ stateful-sepolia :
158+ name : stateful-sepolia (${{matrix.shard}})
159+ needs : build-stateful-sepolia
140160 timeout-minutes : 10
141161 runs-on : blacksmith-4vcpu-ubuntu-2404
142162 strategy :
@@ -151,26 +171,67 @@ jobs:
151171
152172 - run : pnpm rebuild -r
153173
154- - name : Download build
174+ - name : Download sepolia build
155175 id : download
156176 uses : actions/download-artifact@v4
157177 with :
158- name : stateful-build
178+ name : stateful-sepolia- build
159179
160- - name : Untar files
161- run : tar -xvf stateful-build.tar
180+ - name : Untar sepolia files
181+ run : tar -xvf stateful-sepolia- build.tar
162182
163- - name : Run tests
183+ - name : Run sepolia tests
164184 run : |
165185 parallel --lb --halt now,success=1,fail=1 ::: \
166186 "pnpm wrangle" \
167- "pnpm wait-on http://127.0.0.1:8788 && npx playwright test --shard=${{matrix.shard}}/${{strategy.job-total}} --project=stateful"
187+ "pnpm wait-on http://127.0.0.1:8788 && npx playwright test --shard=${{matrix.shard}}/${{strategy.job-total}} --project=stateful --grep-invert='@mainnet'"
188+ env :
189+ SECRET_WORDS : ${{ secrets.SECRET_WORDS }}
190+
191+ - uses : actions/upload-artifact@v4
192+ if : always()
193+ with :
194+ name : stateful-sepolia-report-${{matrix.shard}}
195+ path : playwright-report/
196+ retention-days : 30
197+
198+ stateful-mainnet :
199+ name : stateful-mainnet (${{matrix.shard}})
200+ needs : build-stateful-mainnet
201+ timeout-minutes : 10
202+ runs-on : blacksmith-4vcpu-ubuntu-2404
203+ strategy :
204+ matrix :
205+ shard : [1, 2, 3]
206+ steps :
207+ - uses : actions/checkout@v4
208+ - uses : ./.github/actions/setup
209+ - uses : ./.github/actions/setup-playwright
210+
211+ - run : |
212+ export NEXT_PUBLIC_CHAIN_NAME=mainnet
213+ pnpm rebuild -r
214+
215+ - name : Download mainnet build
216+ id : download
217+ uses : actions/download-artifact@v4
218+ with :
219+ name : stateful-mainnet-build
220+
221+ - name : Untar mainnet files
222+ run : tar -xvf stateful-mainnet-build.tar
223+
224+ - name : Run mainnet tests
225+ run : |
226+ parallel --lb --halt now,success=1,fail=1 ::: \
227+ "pnpm dev:mainnet" \
228+ "pnpm wait-on http://127.0.0.1:3000 && CHAIN=mainnet npx playwright test --shard=${{matrix.shard}}/${{strategy.job-total}} --project=stateful --grep='@mainnet'"
168229 env :
169230 SECRET_WORDS : ${{ secrets.SECRET_WORDS }}
170231
171232 - uses : actions/upload-artifact@v4
172233 if : always()
173234 with :
174- name : stateful-report-${{matrix.shard}}
235+ name : stateful-mainnet- report-${{matrix.shard}}
175236 path : playwright-report/
176237 retention-days : 30
0 commit comments