Skip to content

Commit 6dea645

Browse files
committed
ci(.github/workflows/lint-and-type.yml): add matrix strategy for parallel execution
1 parent 90f8d59 commit 6dea645

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/lint-and-type.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ on:
77
types: [opened, synchronize]
88

99
jobs:
10-
lint:
10+
test:
1111
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
command: ['format', 'types', 'lint']
1215
steps:
1316
- uses: actions/checkout@v4
1417
- uses: pnpm/action-setup@v4
@@ -17,6 +20,4 @@ jobs:
1720
node-version: 'lts/*'
1821
cache: 'pnpm'
1922
- run: pnpm install
20-
- run: pnpm run test:format
21-
- run: pnpm run test:types
22-
- run: pnpm run test:lint
23+
- run: pnpm run test:${{ matrix.command }}

0 commit comments

Comments
 (0)