Skip to content

Commit 06a8727

Browse files
author
Alex Plischke
authored
build!: upgrade to Node.js 20 (#40)
* deps: bump them all * fix: update API after dependency bump * refactor: explicitly state test requirements * build: upgrade to Node.js 20 * ci: consolidate * chore: add engine requirement
1 parent 47c8f0f commit 06a8727

File tree

9 files changed

+4773
-5771
lines changed

9 files changed

+4773
-5771
lines changed

.github/workflows/lint.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release New Version
1+
name: Release
22

33
on:
44
workflow_dispatch:
@@ -12,17 +12,19 @@ jobs:
1212
publish-release:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
15+
- name: Checkout
16+
uses: actions/checkout@v3
1617
with:
1718
ref: ${{ github.ref }}
1819
fetch-depth: 0
1920

20-
- name: Setup Node version
21+
- name: Setup Node
2122
uses: actions/setup-node@v3
2223
with:
23-
node-version: 14
24+
node-version-file: '.nvmrc'
25+
cache: 'npm'
2426

25-
- name: Install dependencies
27+
- name: Install Dependencies
2628
run: npm ci
2729

2830
- name: Setup Git

.github/workflows/test.yml

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,46 @@
1-
name: Integration Tests
1+
name: Tests
22

33
on:
44
pull_request:
55
branches:
66
- main
77

88
jobs:
9-
node-14:
9+
lint:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
13-
with:
14-
ref: ${{ github.ref }}
15-
fetch-depth: 0
12+
- name: Checkout
13+
uses: actions/checkout@v3
1614

17-
- uses: actions/setup-node@v3
15+
- name: Setup Node
16+
uses: actions/setup-node@v3
1817
with:
19-
node-version: 14
18+
node-version-file: '.nvmrc'
19+
cache: 'npm'
2020

21-
- name: Install dependencies
21+
- name: Install Dependencies
2222
run: npm ci
2323

24-
- run: npm test
25-
env:
26-
SAUCE_USERNAME: ${{secrets.SAUCE_USERNAME}}
27-
SAUCE_ACCESS_KEY: ${{secrets.SAUCE_ACCESS_KEY}}
24+
- name: Lint
25+
run: npm run lint
2826

29-
node-16:
27+
integration:
3028
runs-on: ubuntu-latest
3129
steps:
32-
- uses: actions/checkout@v3
33-
with:
34-
ref: ${{ github.ref }}
35-
fetch-depth: 0
30+
- name: Checkout
31+
uses: actions/checkout@v3
3632

37-
- uses: actions/setup-node@v3
33+
- name: Setup Node
34+
uses: actions/setup-node@v3
3835
with:
39-
node-version: 16
36+
node-version-file: '.nvmrc'
37+
cache: 'npm'
4038

41-
- name: Install dependencies
39+
- name: Install Dependencies
4240
run: npm ci
4341

44-
- run: npm test
42+
- name: Test
43+
run: npm test
4544
env:
4645
SAUCE_USERNAME: ${{secrets.SAUCE_USERNAME}}
4746
SAUCE_ACCESS_KEY: ${{secrets.SAUCE_ACCESS_KEY}}

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lts/fermium
1+
v20

0 commit comments

Comments
 (0)