Skip to content

Commit 6bad036

Browse files
rekmarksclaude
andcommitted
feat(ci): Parallelize E2E tests with matrix strategy
Run E2E tests for each package (omnium-gatherum, nodejs, extension) in parallel instead of serially to reduce total CI wall-clock time. Each package gets its own job with independent artifact uploads, and upload errors are ignored for packages that don't produce test artifacts. Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
1 parent 0769b3c commit 6bad036

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/lint-build-test.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ jobs:
156156
strategy:
157157
matrix:
158158
node-version: [24.x]
159+
package: [omnium-gatherum, nodejs, extension]
159160
steps:
160161
- name: Checkout and setup environment
161162
uses: MetaMask/action-checkout-and-setup@v2
@@ -165,13 +166,14 @@ jobs:
165166
- run: VITE_DB_FOLDER=e2e yarn build
166167
- name: Run E2E tests
167168
id: e2e
168-
run: yarn test:e2e:ci
169+
run: yarn workspace @ocap/${{ matrix.package }} test:e2e:ci
169170
- name: Upload test artifacts
170171
if: ${{ failure() && steps.e2e.conclusion == 'failure' }}
171172
uses: actions/upload-artifact@v6
172173
with:
173-
name: playwright-traces
174-
path: packages/extension/test-results
174+
name: playwright-traces-${{ matrix.package }}
175+
path: packages/${{ matrix.package }}/test-results
176+
if-no-files-found: ignore
175177
- name: Require clean working directory
176178
shell: bash
177179
run: |

0 commit comments

Comments
 (0)