Skip to content

Commit e1aadfa

Browse files
committed
Upgrade to Node 24 with shared test workflow
Migrate test.yml to use shared reusable workflow from activeprospect/github-action-workflows. Add .nvmrc and engines field.
1 parent 3008262 commit e1aadfa

3 files changed

Lines changed: 10 additions & 19 deletions

File tree

.github/workflows/test.yml

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,9 @@ name: Node.js CI
22
on: push
33
jobs:
44
test:
5-
runs-on: ubuntu-latest
6-
strategy:
7-
matrix:
8-
node-version: [16.x, 18.x, latest]
9-
env:
5+
uses: activeprospect/github-action-workflows/.github/workflows/test.yml@master
6+
with:
7+
codecov: true
8+
secrets:
109
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
11-
steps:
12-
- uses: actions/checkout@v3
13-
14-
- name: Use Node.js ${{ matrix.node-version }}
15-
uses: actions/setup-node@v3
16-
with:
17-
node-version: ${{ matrix.node-version }}
18-
- run: npm install
19-
- name: Run tests
20-
run: npx nyc@latest --reporter=lcov npm test
21-
- uses: codecov/codecov-action@v1
22-
with:
23-
token: ${{ secrets.CODECOV_TOKEN }}
10+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
24

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,8 @@
3030
"bugs": {
3131
"url": "https://github.com/hughsk/flat/issues"
3232
},
33-
"homepage": "https://github.com/hughsk/flat"
33+
"homepage": "https://github.com/hughsk/flat",
34+
"engines": {
35+
"node": ">=20"
36+
}
3437
}

0 commit comments

Comments
 (0)