Skip to content

Commit e0ab582

Browse files
committed
ci: update PR workflow
1 parent efd77f9 commit e0ab582

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

.github/workflows/pr.yml

+21-11
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,45 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
node: ['14.x', '16.x']
15+
node: ['18.x', '20.x']
1616

1717
steps:
1818
- name: Checkout repo
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v4
2020

21-
- name: Use Node ${{ matrix.node }}
22-
uses: actions/setup-node@v1
21+
- name: Setup PNPM
22+
uses: pnpm/action-setup@v4
23+
24+
- name: Install Node.js ${{ matrix.node }}
25+
uses: actions/setup-node@v4
2326
with:
2427
node-version: ${{ matrix.node }}
25-
26-
- name: Install deps and build (with cache)
27-
uses: bahmutov/npm-install@v1
28+
cache: "pnpm"
29+
30+
- name: Install dependencies
31+
shell: bash
32+
run: pnpm install
2833

2934
- name: Lint
30-
run: yarn lint --quiet
35+
run: pnpm lint --quiet
3136

3237
- name: Test
33-
run: yarn test:coverage
38+
run: pnpm test:coverage
3439

3540
- name: Build
36-
run: yarn build
41+
run: pnpm build
3742

3843
size:
3944
runs-on: ubuntu-latest
4045
env:
4146
CI_JOB_NUMBER: 1
4247
steps:
43-
- uses: actions/checkout@v1
48+
- name: Checkout repo
49+
uses: actions/checkout@v4
50+
51+
- name: Setup PNPM
52+
uses: pnpm/action-setup@v4
53+
4454
- uses: andresz1/size-limit-action@v1
4555
with:
4656
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)