Merge pull request #1206 from trek-e/chore/node-24-ci-update
chore: update CI to Node 20, 22, 24 — drop EOL Node 18
This commit is contained in:
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
@@ -22,7 +22,7 @@ jobs:
|
|||||||
fail-fast: true
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
node-version: [18, 20, 22]
|
node-version: [20, 22, 24]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||||
@@ -37,13 +37,5 @@ jobs:
|
|||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Run tests with coverage
|
- name: Run tests with coverage
|
||||||
# c8 v11 requires Node 20+ (engines: ^20.0.0 || >=22.0.0). Node 18 EOL April 2025.
|
|
||||||
# Use bash on all platforms so shell glob expansion works on Windows.
|
|
||||||
if: matrix.node-version != 18
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: npm run test:coverage
|
run: npm run test:coverage
|
||||||
|
|
||||||
- name: Run tests (Node 18, coverage not supported)
|
|
||||||
if: matrix.node-version == 18
|
|
||||||
shell: bash
|
|
||||||
run: npm test
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
"url": "https://github.com/glittercowboy/get-shit-done/issues"
|
"url": "https://github.com/glittercowboy/get-shit-done/issues"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.7.0"
|
"node": ">=20.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"c8": "^11.0.0",
|
"c8": "^11.0.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user