Skip to content

Commit 39e55f1

Browse files
authored
Merge pull request #85 from MrMarCode/MrMarCode/upgrade-to-node-20
build: upgrade to node 20
2 parents 5a2a909 + 52af920 commit 39e55f1

File tree

4 files changed

+21
-5948
lines changed

4 files changed

+21
-5948
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,42 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
-
10-
uses: actions/checkout@v3
10+
uses: actions/checkout@v4
1111
with:
1212
fetch-depth: 0 # Fetch all history
1313
-
14-
uses: actions/setup-node@v3
14+
uses: actions/setup-node@v4
1515
with:
1616
node-version-file: '.nvmrc'
17-
- run: npm i -g npm@8.5.5
1817
- run: npm ci
18+
- run: npm run check-node-version
1919
- run: npm run standards
2020
test:
2121
needs: [ build ]
2222
runs-on: ubuntu-latest
2323
strategy:
2424
fail-fast: false
2525
matrix:
26-
node-version: [ 12, 14, 16, 'lts/*', 'latest' ]
26+
node-version: [ 16, 20, 'lts/*', 'latest' ]
2727
steps:
28-
- uses: actions/checkout@v3
28+
- uses: actions/checkout@v4
2929
-
3030
name: Use Node.js ${{ matrix.node-version }}
31-
uses: actions/setup-node@v3
31+
uses: actions/setup-node@v4
3232
with:
3333
node-version: ${{ matrix.node-version }}
34-
- run: npm i -g npm@8.5.5
3534
- run: npm ci # Reinstall the dependencies to ensure they install with the current version of node
3635
- run: npm test
3736
- name: Coveralls
3837
uses: coverallsapp/github-action@v1
38+
with:
39+
parallel: true
40+
flag-name: ${{ matrix.node-version }}
41+
finish:
42+
needs: [ test ]
43+
runs-on: ubuntu-latest
44+
steps:
45+
- name: Close parallel build
46+
uses: coverallsapp/github-action@v1
47+
with:
48+
parallel-finished: true

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.15.0
1+
20.12.2

0 commit comments

Comments
 (0)