Skip to content

Commit a9942dc

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 a9942dc

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/compiler_playground.yml

Lines changed: 8 additions & 5 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
@@ -38,13 +44,10 @@ jobs:
3844
with:
3945
path: "**/node_modules"
4046
key: compiler-node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('compiler/**/yarn.lock') }}
41-
- name: yarn install compiler
42-
run: yarn install --frozen-lockfile
43-
working-directory: compiler
4447
- name: yarn install playground
4548
run: yarn install --frozen-lockfile
4649
- run: npx playwright install --with-deps chromium
47-
- run: CI=true yarn test
50+
- run: CI=true yarn test --shard=${{ matrix.shard }}
4851
- run: ls -R test-results
4952
if: '!cancelled()'
5053
- name: Archive test results

0 commit comments

Comments
 (0)