Skip to content

Commit b8df232

Browse files
committed
ci: update Node.js versions
1 parent 6ecba64 commit b8df232

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
name: ci
22

3-
on: [push]
3+
on:
4+
- push
5+
- pull_request
46

57
jobs:
68
build:
7-
runs-on: ubuntu-latest
9+
runs-on: ubuntu-24.04
810
strategy:
911
matrix:
10-
node: [ '18', '16', '14' ]
12+
node: ['22', '20', '18']
1113
name: Node ${{ matrix.node }} CI
1214
steps:
13-
- uses: actions/checkout@v1
14-
- name: Setup node
15-
uses: actions/setup-node@v1
16-
with:
17-
node-version: ${{ matrix.node }}
18-
- name: npm install, build, lint, and test
19-
run: |
20-
npm ci
21-
npm run build
22-
npm run lint
23-
npm test
24-
env:
25-
CI: true
15+
- uses: actions/checkout@v4
16+
17+
- name: Setup node
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: ${{ matrix.node }}
21+
22+
- name: npm install, build, lint, and test
23+
run: |
24+
npm ci
25+
npm run build
26+
npm run lint
27+
npm test
28+
env:
29+
CI: true

0 commit comments

Comments
 (0)