Skip to content

Commit a9077a9

Browse files
committed
ci: use pnpm in lint action jobs
1 parent b1ad4b8 commit a9077a9

File tree

1 file changed

+39
-24
lines changed

1 file changed

+39
-24
lines changed

.github/workflows/lint.yml

+39-24
Original file line numberDiff line numberDiff line change
@@ -8,46 +8,61 @@ jobs:
88
name: Run ESLint
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
12-
- uses: actions/setup-node@v2
11+
- uses: actions/checkout@v3
12+
- uses: pnpm/action-setup@v2.2.2
1313
with:
14-
node-version: '14'
15-
cache: 'yarn'
16-
- run: yarn
17-
- run: yarn lint:strict
14+
version: 7
15+
- uses: pnpm/[email protected]
16+
with:
17+
version: 7
18+
- uses: actions/setup-node@v3
19+
with:
20+
node-version: '16'
21+
cache: 'pnpm'
22+
- run: pnpm install --frozen-lockfile
23+
- run: pnpm lint:strict
1824

1925
tsc:
2026
name: Run Type Check
2127
runs-on: ubuntu-latest
2228
steps:
23-
- uses: actions/checkout@v2
24-
- uses: actions/setup-node@v2
29+
- uses: actions/checkout@v3
30+
- uses: pnpm/[email protected]
31+
with:
32+
version: 7
33+
- uses: actions/setup-node@v3
2534
with:
26-
node-version: '14'
27-
cache: 'yarn'
28-
- run: yarn
29-
- run: yarn typecheck
35+
node-version: '16'
36+
cache: 'pnpm'
37+
- run: pnpm install --frozen-lockfile
38+
- run: pnpm typecheck
3039

3140
prettier:
3241
name: Run Prettier Check
3342
runs-on: ubuntu-latest
3443
steps:
35-
- uses: actions/checkout@v2
36-
- uses: actions/setup-node@v2
44+
- uses: actions/checkout@v3
45+
- uses: pnpm/action-setup@v2.2.2
3746
with:
38-
node-version: '14'
39-
cache: 'yarn'
40-
- run: yarn
41-
- run: yarn format:check
47+
version: 7
48+
- uses: actions/setup-node@v3
49+
with:
50+
node-version: '16'
51+
cache: 'pnpm'
52+
- run: pnpm install --frozen-lockfile
53+
- run: pnpm format:check
4254

4355
test:
4456
name: Run Test
4557
runs-on: ubuntu-latest
4658
steps:
47-
- uses: actions/checkout@v2
48-
- uses: actions/setup-node@v2
59+
- uses: actions/checkout@v3
60+
- uses: pnpm/[email protected]
61+
with:
62+
version: 7
63+
- uses: actions/setup-node@v3
4964
with:
50-
node-version: '14'
51-
cache: 'yarn'
52-
- run: yarn
53-
- run: yarn test
65+
node-version: '16'
66+
cache: 'pnpm'
67+
- run: pnpm install --frozen-lockfile
68+
- run: pnpm test

0 commit comments

Comments
 (0)