Skip to content

Commit be2ee0f

Browse files
authored
Add node verisons 16, 18 and 20 (#331)
1 parent 795bbb5 commit be2ee0f

1 file changed

Lines changed: 31 additions & 18 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,36 @@
1-
name: ci
2-
'on':
3-
- push
4-
- pull_request
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
59
jobs:
6-
test:
7-
name: Node ${{ matrix.node }} / ${{ matrix.os }}
8-
runs-on: ${{ matrix.os }}
10+
unit:
11+
runs-on: ubuntu-latest
912
strategy:
1013
fail-fast: false
1114
matrix:
12-
os:
13-
- ubuntu-latest
14-
node:
15-
- '14'
15+
# see https://nodejs.org/en/about/releases/
16+
node-version: [16.x, 18.x, 20.x]
17+
1618
steps:
17-
- uses: actions/checkout@v2
18-
- uses: actions/setup-node@v2
19-
with:
20-
node-version: ${{ runner.node }}
21-
- run: npm install
22-
- run: npm run build --if-present
23-
- run: npm test
19+
- uses: actions/checkout@main
20+
- uses: actions/setup-node@main
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- run: npm install
24+
- run: npm test
25+
26+
standard:
27+
runs-on: ubuntu-latest
28+
29+
steps:
30+
- uses: actions/checkout@main
31+
- uses: actions/setup-node@main
32+
with:
33+
# don't use lts/* to prevent hitting rate-limit
34+
node-version: 20.x
35+
- run: npm install
36+
- run: npm run standard

0 commit comments

Comments
 (0)