Skip to content

Commit a9a2181

Browse files
committed
refactor: parallelize CI validation tasks using a matrix strategy
1 parent 0a887d7 commit a9a2181

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,17 @@ permissions:
1717

1818
jobs:
1919
validate:
20-
name: Validate Project
20+
name: ${{ matrix.task.name }}
2121
runs-on: ubuntu-latest
22+
strategy:
23+
matrix:
24+
task:
25+
- name: 'Code Style Verification (Prettier)'
26+
command: 'format:check'
27+
- name: 'Static Code Analysis (ESLint)'
28+
command: 'lint'
29+
- name: 'Automated Unit & E2E Testing (Vitest)'
30+
command: 'test'
2231
steps:
2332
- name: Checkout Code
2433
uses: actions/checkout@v4
@@ -37,11 +46,5 @@ jobs:
3746
- name: Install Dependencies
3847
run: pnpm install --frozen-lockfile
3948

40-
- name: Check Formatting
41-
run: pnpm run format:check
42-
43-
- name: Run Linter
44-
run: pnpm run lint
45-
46-
- name: Run Tests
47-
run: pnpm run test
49+
- name: Execute Validation
50+
run: pnpm run ${{ matrix.task.command }}

0 commit comments

Comments
 (0)