Skip to content

Commit 68d2b3b

Browse files
committed
chore: migrate ci from yarn to pnpm
1 parent 82a555f commit 68d2b3b

File tree

1 file changed

+27
-21
lines changed

1 file changed

+27
-21
lines changed

.github/workflows/ci.yml

+27-21
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,41 @@ jobs:
1010
test-webpack4:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
14-
- name: Set node version to 16
15-
uses: actions/setup-node@v2
13+
- uses: actions/checkout@v3
14+
- uses: pnpm/action-setup@v2
1615
with:
17-
node-version: 16
18-
cache: 'yarn'
19-
- run: yarn install
20-
- run: yarn test:webpack4
16+
version: 8.5.0
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: '18'
20+
cache: 'pnpm'
21+
- run: pnpm install
22+
- run: pnpm test:webpack4
2123

2224
test-webpack5:
2325
runs-on: ubuntu-latest
2426
steps:
25-
- uses: actions/checkout@v2
26-
- name: Set node version to 16
27-
uses: actions/setup-node@v2
27+
- uses: actions/checkout@v3
28+
- uses: pnpm/action-setup@v2
29+
with:
30+
version: 8.5.0
31+
- uses: actions/setup-node@v3
2832
with:
29-
node-version: 16
30-
cache: 'yarn'
31-
- run: yarn install
32-
- run: yarn test
33+
node-version: '18'
34+
cache: 'pnpm'
35+
- run: pnpm install
36+
- run: pnpm test
3337

3438
test-webpack5-inline-match-resource:
3539
runs-on: ubuntu-latest
3640
steps:
37-
- uses: actions/checkout@v2
38-
- name: Set node version to 16
39-
uses: actions/setup-node@v2
41+
- uses: actions/checkout@v3
42+
- uses: pnpm/action-setup@v2
43+
with:
44+
version: 8.5.0
45+
- uses: actions/setup-node@v3
4046
with:
41-
node-version: 16
42-
cache: 'yarn'
43-
- run: yarn install
44-
- run: yarn test:match-resource
47+
node-version: '18'
48+
cache: 'pnpm'
49+
- run: pnpm install
50+
- run: pnpm test:match-resource

0 commit comments

Comments
 (0)