Skip to content

Commit 139f310

Browse files
committed
split lint into a job that can run parallel with tests
1 parent 5296a4a commit 139f310

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,31 @@ on:
77
branches: [main]
88

99
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- uses: pnpm/action-setup@v4
17+
with:
18+
run_install: false
19+
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: '24'
23+
cache: 'pnpm'
24+
25+
- run: pnpm install --frozen-lockfile
26+
27+
- run: pnpm lint
28+
1029
test:
1130
runs-on: ubuntu-latest
1231

1332
strategy:
1433
matrix:
15-
node-version: ['20', '22', '24']
34+
node-version: ['18', '20', '22', '24']
1635

1736
steps:
1837
- uses: actions/checkout@v4
@@ -28,8 +47,6 @@ jobs:
2847

2948
- run: pnpm install --frozen-lockfile
3049

31-
- run: pnpm lint
32-
3350
- run: pnpm build
3451

3552
- run: pnpm test:all

0 commit comments

Comments
 (0)