Skip to content

Commit b941329

Browse files
committed
test(rsc): tweak ci
1 parent 713a320 commit b941329

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/ci-rsc.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ jobs:
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

packages/plugin-rsc/playwright.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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']

0 commit comments

Comments
 (0)