Skip to content

Commit 5b97541

Browse files
committed
ci: Use matrix to run unit tests in each workspace in parallel
1 parent 958041d commit 5b97541

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,20 @@ permissions:
1212
contents: read
1313

1414
jobs:
15-
test:
16-
name: Unit and Integration
15+
unit:
16+
name: "${{ matrix.workspace }} (Node ${{ matrix.version }}, ${{ matrix.os }})"
1717
strategy:
18-
fail-fast: false # Do not stop other jobs if one fails
18+
fail-fast: false
1919
matrix:
2020
version: [22, 24]
2121
os: [ubuntu-24.04, windows-2025, macos-15]
22+
workspace:
23+
- "@ui5/builder"
24+
- "@ui5/cli"
25+
- "@ui5/fs"
26+
- "@ui5/logger"
27+
- "@ui5/project"
28+
- "@ui5/server"
2229
runs-on: ${{ matrix.os }}
2330
steps:
2431

@@ -38,4 +45,4 @@ jobs:
3845
run: npm ci
3946

4047
- name: Run unit tests
41-
run: npm run unit
48+
run: npm run unit --workspace=${{ matrix.workspace }}

0 commit comments

Comments
 (0)