Skip to content

Commit b727af2

Browse files
authored
chore: update supported Node.js versions (#733)
* chore: remove EoL Node.js 16 from test matrix * chore: update engines in package.json * chore: moved to prepare-node-test-matrix BREAKING CHANGE: remove support from Node.js 16.x,17.x and 19.x.
1 parent 7382454 commit b727af2

File tree

2 files changed

+9
-23
lines changed

2 files changed

+9
-23
lines changed

.github/workflows/nodejs.yml

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,13 @@ jobs:
2222
run: npm run lint
2323

2424
test:
25-
name: Test on Node.js ${{ matrix.node-version }} and ${{ matrix.os }}
25+
name: Test on Node.js
26+
uses: pkgjs/action/.github/workflows/node-test.yaml@v0
27+
with:
28+
runs-on: ubuntu-latest, macos-latest
29+
test-command: npm run coverage:ci
30+
post-test-steps: |
31+
- name: Upload coverage report to Codecov
32+
uses: codecov/codecov-action@v3
2633
strategy:
2734
fail-fast: false
28-
matrix:
29-
node-version: [16.x, 18.x, 20.x]
30-
os: [ubuntu-latest, macOS-latest, windows-latest]
31-
runs-on: ${{ matrix.os }}
32-
steps:
33-
- uses: actions/checkout@v3
34-
- name: Use Node.js ${{ matrix.node-version }}
35-
uses: actions/setup-node@v3
36-
with:
37-
node-version: ${{ matrix.node-version }}
38-
check-latest: true
39-
- name: Install dependencies
40-
run: npm install
41-
- name: Run tests
42-
if: matrix.node-version == '16.x'
43-
run: npm run test-unit
44-
- name: Run tests
45-
if: matrix.node-version != '16.x'
46-
run: npm run coverage:ci
47-
- name: Upload coverage report to Codecov
48-
uses: codecov/codecov-action@v3

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Utilities for Node.js core collaborators",
55
"type": "module",
66
"engines": {
7-
"node": ">=16.8.0"
7+
"node": "^18.18.0 || >=20.0.0"
88
},
99
"bin": {
1010
"get-metadata": "./bin/get-metadata.js",

0 commit comments

Comments
 (0)