Skip to content

Commit d5f6b57

Browse files
committed
[ci] Shard playground tests
playwright also supports sharding tests. Let's see if we can get playground CI times down from 3-4 mins.
1 parent 5b666f9 commit d5f6b57

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/compiler_playground.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,14 @@ defaults:
2323

2424
jobs:
2525
playground:
26-
name: Test playground
26+
name: yarn test (Shard ${{ matrix.shard }})
2727
runs-on: ubuntu-latest
28+
strategy:
29+
matrix:
30+
shard:
31+
- 1/3
32+
- 2/3
33+
- 3/3
2834
steps:
2935
- uses: actions/checkout@v4
3036
- uses: actions/setup-node@v4
@@ -44,7 +50,7 @@ jobs:
4450
- name: yarn install playground
4551
run: yarn install --frozen-lockfile
4652
- run: npx playwright install --with-deps chromium
47-
- run: CI=true yarn test
53+
- run: CI=true yarn test --shard=${{ matrix.shard }}
4854
- run: ls -R test-results
4955
if: '!cancelled()'
5056
- name: Archive test results

0 commit comments

Comments
 (0)