Skip to content

Commit 9bb69a4

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

File tree

2 files changed

+29
-7
lines changed

2 files changed

+29
-7
lines changed

.github/workflows/test.yml

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,37 @@
11
name: Test
2-
on: push
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths-ignore:
7+
- '*.md'
8+
permissions:
9+
contents: read
310
jobs:
11+
lint:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v5
15+
- name: Use Node.js 24.x
16+
uses: actions/setup-node@v5
17+
with:
18+
node-version: 24.x
19+
- name: npm install
20+
run: npm install
21+
- name: npm lint
22+
run: npm run lint
423
test:
524
runs-on: ubuntu-latest
625
strategy:
726
matrix:
8-
node-version: [10.x, 12.x, 13.x]
27+
node-version: [10.x, 12.x, 13.x, 14.x, 16.x, 18.x, 20.x, 22.x, 24.x]
928
steps:
10-
- uses: actions/checkout@v2
29+
- uses: actions/checkout@v5
1130
- name: Use Node.js ${{ matrix.node-version }}
12-
uses: actions/setup-node@v1
31+
uses: actions/setup-node@v5
1332
with:
1433
node-version: ${{ matrix.node-version }}
15-
- name: npm install and test
16-
run: npm it
34+
- name: npm install
35+
run: npm install
36+
- name: npm test
37+
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)