Skip to content

Commit

Permalink
Stop testing in Node 14 and 16 (#1623)
Browse files Browse the repository at this point in the history
test: Stop testing in Node 14 and 16

BREAKING CHANGE

This will require Node 18 as the new minimum required version,
because we no longer test in 14 or 16.
  • Loading branch information
tmcw committed Feb 1, 2024
1 parent 8d0fc1d commit 44da84f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,25 @@ name: Node.js CI

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
node-version: [18.x, 20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3.8.0
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run test-ci
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run test-ci
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
}
},
"engines": {
"node": ">=14"
"node": ">=18"
},
"lint-staged": {
"*.js": [
Expand Down

0 comments on commit 44da84f

Please sign in to comment.