Skip to content

Commit 236d8b4

Browse files
committed
refactor: parallelize validation steps using a matrix strategy in CI workflow
1 parent 5aaa3fa commit 236d8b4

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ permissions:
1313
jobs:
1414
validate:
1515
runs-on: ubuntu-latest
16-
16+
strategy:
17+
matrix:
18+
task: [format:check, lint, test]
19+
name: Validate (${{ matrix.task }})
1720
steps:
1821
- name: Checkout Code
1922
uses: actions/checkout@v4
@@ -32,11 +35,5 @@ jobs:
3235
- name: Install Dependencies
3336
run: pnpm install --frozen-lockfile
3437

35-
- name: Check Formatting
36-
run: pnpm run format:check
37-
38-
- name: Run Linter
39-
run: pnpm run lint
40-
41-
- name: Run Tests
42-
run: pnpm test
38+
- name: Run Validate Task
39+
run: pnpm run ${{ matrix.task }}

0 commit comments

Comments
 (0)