Skip to content

Commit 6ff2a7f

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 c51891b commit 6ff2a7f

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
@@ -591,6 +591,16 @@ jobs:
591591
- bundle_tracing_es6_min
592592
- bundle_tracing_replay_es6
593593
- bundle_tracing_replay_es6_min
594+
project:
595+
- chromium
596+
include:
597+
# Only check all projects for esm & full bundle
598+
- bundle: bundle_tracing_replay_es6_min
599+
project: ''
600+
- bundle: esm
601+
project: ''
602+
# We also shard the ESM tests as they take the longest
603+
shard: [1,2]
594604

595605
steps:
596606
- name: Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
@@ -628,9 +638,8 @@ jobs:
628638
- name: Run Playwright tests
629639
env:
630640
PW_BUNDLE: ${{ matrix.bundle }}
631-
run: |
632-
cd dev-packages/browser-integration-tests
633-
yarn test:ci
641+
working-directory: dev-packages/browser-integration-tests
642+
run: yarn test:ci${{ matrix.project && format(' --project={0}', matrix.project) || '' }}${{ matrix.shard && format(' --shard={0}/2', matrix.shard) || '' }}
634643

635644
job_browser_loader_tests:
636645
name: Playwright Loader (${{ matrix.bundle }}) Tests

0 commit comments

Comments
 (0)