1919
2020jobs :
2121 e2e-test :
22+ name : e2e-test (${{ matrix.shard-index }}/${{ matrix.shard-total }})
2223 runs-on : ubuntu-latest
2324
25+ strategy :
26+ fail-fast : false
27+ matrix :
28+ shard-index : [1, 2, 3, 4]
29+ shard-total : [4]
30+
2431 env :
2532 GH_TOKEN : ${{ github.token }}
2633
3441 uses : ./.github/actions/setup-node
3542
3643 - name : Cache Playwright browsers
37- uses : actions/cache@v4
44+ uses : actions/cache@v6
3845 with :
3946 path : ~/.cache/ms-playwright
4047 key : ${{ runner.os }}-playwright-${{ hashFiles('pnpm-lock.yaml') }}
@@ -46,10 +53,10 @@ jobs:
4653 run : pnpm build:e2e
4754
4855 - name : Run Playwright Tests
49- run : pnpm exec playwright test
56+ run : pnpm exec playwright test --shard=${{ matrix.shard-index }}/${{ matrix.shard-total }}
5057
5158 - name : Write Playwright Report to PR Comment
52- uses : daun/playwright-report-summary@v3
59+ uses : daun/playwright-report-summary@v4
5360 if : always()
5461 with :
5562 report-file : playwright-report.json
@@ -59,14 +66,14 @@ jobs:
5966 uses : actions/upload-artifact@v4
6067 if : ${{ !cancelled() }}
6168 with :
62- name : playwright-report
69+ name : playwright-report-${{ matrix.shard-index }}-of-${{ matrix.shard-total }}
6370 path : playwright-report/
6471 retention-days : 30
6572
6673 - name : Upload HeapSnapshots
6774 uses : actions/upload-artifact@v4
6875 if : ${{ failure() }}
6976 with :
70- name : snapshots
77+ name : snapshots-${{ matrix.shard-index }}-of-${{ matrix.shard-total }}
7178 path : test-results/*.heapsnapshot
7279 retention-days : 3
0 commit comments