Skip to content

Commit b63971a

Browse files
committed
fix(ci): update ci to include modern node.js versions
1 parent 1149077 commit b63971a

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

.github/workflows/test.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,30 @@
11
name: Test
22
on: push
33
jobs:
4+
lint:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v5
8+
- name: Use Node.js 24.x
9+
uses: actions/setup-node@v5
10+
with:
11+
node-version: 24.x
12+
- name: npm install
13+
run: npm install
14+
- name: npm lint
15+
run: npm run lint
416
test:
517
runs-on: ubuntu-latest
618
strategy:
719
matrix:
8-
node-version: [10.x, 12.x, 13.x]
20+
node-version: [10.x, 12.x, 13.x, 14.x, 16.x, 18.x, 20.x, 22.x, 24.x]
921
steps:
10-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v5
1123
- name: Use Node.js ${{ matrix.node-version }}
12-
uses: actions/setup-node@v1
24+
uses: actions/setup-node@v5
1325
with:
1426
node-version: ${{ matrix.node-version }}
15-
- name: npm install and test
16-
run: npm it
27+
- name: npm install
28+
run: npm install
29+
- name: npm test
30+
run: npm run test

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"url": "https://github.com/pkgjs/nv.git"
2727
},
2828
"scripts": {
29-
"test": "standard && mocha && tsd",
29+
"test": "mocha && tsd",
30+
"lint": "standard",
3031
"debug": "mocha --inspect --inspect-brk --timeout=0",
3132
"prepublishOnly": "npm t",
3233
"postpublish": "git push origin && git push origin --tags",

0 commit comments

Comments
 (0)