Skip to content

Commit 70b47bd

Browse files
committed
ci: separate lint
1 parent 96315ed commit 70b47bd

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/unit-test.yml

+20-3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,26 @@ 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@v2
17+
name: Install pnpm
18+
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: lts/*
22+
cache: pnpm
23+
24+
- name: Install deps
25+
run: pnpm i --frozen-lockfile
26+
27+
- name: Lint
28+
run: pnpm lint
29+
1030
test:
1131
strategy:
1232
matrix:
@@ -30,8 +50,5 @@ jobs:
3050
- name: Install deps
3151
run: pnpm i --frozen-lockfile
3252

33-
- name: Lint
34-
run: pnpm lint
35-
3653
- name: Build
3754
run: pnpm build

0 commit comments

Comments
 (0)