Skip to content

Commit b380c26

Browse files
chore: update ci
1 parent 784c0fc commit b380c26

File tree

1 file changed

+8
-19
lines changed

1 file changed

+8
-19
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,29 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on: [push]
44

55
jobs:
66
test:
77
name: Test Node.js ${{ matrix.node-version }}
88
runs-on: ubuntu-latest
9+
910
strategy:
1011
fail-fast: true
1112
matrix:
1213
node-version:
13-
- 18
14+
- 20
1415
- 22
1516

1617
steps:
17-
- name: Checkout
18-
uses: actions/checkout@v4
19-
20-
- name: Install pnpm
21-
uses: pnpm/action-setup@v3
22-
id: pnpm-install
23-
with:
24-
version: 9.12.2
25-
run_install: false
26-
27-
- name: Install Node.js
28-
uses: actions/setup-node@v4
18+
- uses: actions/checkout@v4
19+
- uses: pnpm/action-setup@v4
20+
- uses: actions/setup-node@v4
2921
with:
3022
node-version: ${{ matrix.node-version }}
3123
cache: 'pnpm'
3224

33-
- name: Install dependencies
34-
run: pnpm install --frozen-lockfile --strict-peer-dependencies
35-
36-
- name: Run test
37-
run: pnpm test
25+
- run: pnpm install --frozen-lockfile --strict-peer-dependencies
26+
- run: pnpm test
3827

3928
# TODO Enable those lines below if you use a Redis cache, you'll also need to configure GitHub Repository Secrets
4029
# env:

0 commit comments

Comments
 (0)