Skip to content

Commit 03759f0

Browse files
committed
ci: Streamline browser integration tests on CI
This does two things: 1. Only run webkit tests for the full bundle & esm tests (no need to run this for every variation...) 2. Shard the ESM tests for better parallelization
1 parent e168692 commit 03759f0

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,16 @@ jobs:
567567
- bundle_tracing_es6_min
568568
- bundle_tracing_replay_es6
569569
- bundle_tracing_replay_es6_min
570+
project:
571+
- chromium
572+
include:
573+
# Only check all projects for esm & full bundle
574+
- bundle: bundle_tracing_replay_es6_min
575+
project: ''
576+
- bundle: esm
577+
project: ''
578+
# We also shard the ESM tests as they take the longest
579+
shard: [1,2]
570580

571581
steps:
572582
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
@@ -604,9 +614,8 @@ jobs:
604614
- name: Run Playwright tests
605615
env:
606616
PW_BUNDLE: ${{ matrix.bundle }}
607-
run: |
608-
cd dev-packages/browser-integration-tests
609-
yarn test:ci
617+
working-directory: dev-packages/browser-integration-tests
618+
run: yarn test:ci${{ matrix.project && format(' --project={0}', matrix.project) || '' }}${{ matrix.shard && format(' --shard={0}/2', matrix.shard) || '' }}
610619

611620
job_browser_loader_tests:
612621
name: Playwright Loader (${{ matrix.bundle }}) Tests

0 commit comments

Comments
 (0)