Skip to content

Commit fa4ec6d

Browse files
authored
require node version >= 18 (#360)
1 parent d5ed997 commit fa4ec6d

File tree

2 files changed

+8
-15
lines changed

2 files changed

+8
-15
lines changed

.github/workflows/tester.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,10 @@ jobs:
88
strategy:
99
matrix:
1010
os: [ubuntu-latest, windows-latest, macos-latest]
11-
node-version: ['14.x', '16.x', '18.x']
12-
exclude:
13-
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/running-variations-of-jobs-in-a-workflow#excluding-matrix-configurations
14-
- os: macos-latest
15-
node-version: 14.x
11+
node-version: [ '18','20','22']
1612
fail-fast: false
1713
steps:
18-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1915
- name: Use Node.js ${{ matrix.node-version }}
2016
uses: actions/setup-node@v4
2117
with:
@@ -30,18 +26,17 @@ jobs:
3026
run: npm install
3127
- name: Test
3228
run: npm run test
33-
env:
34-
CI: true
29+
3530
coverage:
3631
runs-on: ${{ matrix.os }}
3732
strategy:
3833
matrix:
3934
os: [ubuntu-latest]
40-
node-version: ['14.x']
35+
node-version: ['lts/*']
4136
steps:
42-
- uses: actions/checkout@v2
37+
- uses: actions/checkout@v4
4338
- name: Use Node.js ${{ matrix.node-version }}
44-
uses: actions/setup-node@v1
39+
uses: actions/setup-node@v4
4540
with:
4641
node-version: ${{ matrix.node-version }}
4742
- name: Cache NPM dependencies
@@ -54,9 +49,7 @@ jobs:
5449
run: npm install
5550
- name: Coverage
5651
run: npm run test-cov
57-
env:
58-
CI: true
5952
- name: Coveralls
60-
uses: coverallsapp/github-action@master
53+
uses: coverallsapp/github-action@v2
6154
with:
6255
github-token: ${{ secrets.github_token }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@
5353
"uuid": "^9.0.0"
5454
},
5555
"engines": {
56-
"node": ">=14"
56+
"node": ">=18"
5757
}
5858
}

0 commit comments

Comments
 (0)