Skip to content

Commit aef64d4

Browse files
authored
Upgrade to Node 24 with shared test workflow (#21)
* 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. * trigger CI after shared workflow fix Made-with: Cursor
1 parent 3008262 commit aef64d4

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ jobs:
55
runs-on: ubuntu-latest
66
strategy:
77
matrix:
8-
node-version: [16.x, 18.x, latest]
8+
node-version: [20.x, 24.x]
99
env:
1010
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1111
steps:
12-
- uses: actions/checkout@v3
13-
12+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
13+
1414
- name: Use Node.js ${{ matrix.node-version }}
15-
uses: actions/setup-node@v3
15+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
1616
with:
1717
node-version: ${{ matrix.node-version }}
1818
- run: npm install
1919
- name: Run tests
20-
run: npx nyc@latest --reporter=lcov npm test
21-
- uses: codecov/codecov-action@v1
20+
run: npx nyc@17.1.0 --reporter=lcov npm test
21+
- uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3
2222
with:
2323
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)