Skip to content

Commit

Permalink
Drop node 14, add node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
mantoni committed Jan 29, 2024
1 parent c83a48f commit e5e60a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,26 @@ jobs:

strategy:
matrix:
node-version: ['14.x', '16.x', '18.x']
node-version: ['16.x', '18.x', '20.x']

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: ${{ runner.os }}-node-
cache: 'npm'
- name: Install
run: npm ci
- name: Lint
if: matrix.node-version == '18.x'
if: matrix.node-version == '20.x'
run: npm run lint
- name: Types
if: matrix.node-version == '20.x'
run: node_modules/.bin/tsc
- name: Prettier
if: matrix.node-version == '18.x'
if: matrix.node-version == '20.x'
run: npm run prettier:check
- name: Test
run: npm test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Fail with an Error object and a conventional code property",
"main": "lib/fail.js",
"engines": {
"node": ">=14.0.0"
"node": ">=16"
},
"scripts": {
"lint": "eslint .",
Expand Down

0 comments on commit e5e60a1

Please sign in to comment.