File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 3434 name : test-rsc (${{ matrix.os }} / ${{ matrix.browser }})
3535 runs-on : ${{ matrix.os }}
3636 strategy :
37- # TODO: shard?
3837 matrix :
38+ shared : [1, 2]
39+ shardTotal : [2]
3940 os : [ubuntu-latest, macos-latest, windows-latest]
4041 browser : [chromium]
4142 include :
@@ -53,12 +54,12 @@ jobs:
5354 - run : pnpm i
5455 - run : pnpm build
5556 - run : pnpm -C packages/plugin-rsc exec playwright install ${{ matrix.browser }}
56- - run : pnpm -C packages/plugin-rsc test-e2e-ci --project=${{ matrix.browser }}
57+ - run : pnpm -C packages/plugin-rsc test-e2e-ci --project=${{ matrix.browser }} --shard=${{ matrix.shared }}/${{ matrix.shardTotal }}
5758 env :
5859 TEST_ISOLATED : true
5960 - uses : actions/upload-artifact@v4
6061 if : always()
6162 with :
62- name : test-results-${{ matrix.os }}-${{ matrix.browser }}
63+ name : test-results-${{ matrix.os }}-${{ matrix.browser }}-${{ matrix.shared }}
6364 path : |
6465 packages/plugin-rsc/test-results
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ export default defineConfig({
2626 use : devices [ 'Desktop Safari' ] ,
2727 } ,
2828 ] ,
29+ workers : 1 ,
2930 forbidOnly : ! ! process . env . CI ,
3031 retries : process . env . CI ? 2 : 0 ,
3132 reporter : [ 'list' , process . env . CI && 'github' ]
You can’t perform that action at this time.
0 commit comments