Skip to content

Commit 1252909

Browse files
committed
GitHub Actions: Run tests on Node.js 20 and 22
1 parent f610b33 commit 1252909

File tree

2 files changed

+24
-19
lines changed

2 files changed

+24
-19
lines changed

.github/workflows/tests.yml

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,29 @@
1-
name: Node.js CI
2-
3-
on: [push, pull_request]
4-
1+
name: Tests
2+
on:
3+
push:
4+
pull_request:
5+
permissions:
6+
contents: read
57
jobs:
68
tests:
79
runs-on: ubuntu-latest
8-
910
strategy:
1011
matrix:
11-
node-version: [16.x, 18.x]
12-
12+
node-version:
13+
- 16.x
14+
- 18.x
15+
- 20.x
16+
- 22.x
1317
steps:
14-
- uses: actions/checkout@v2
15-
- name: Use Node.js ${{ matrix.node-version }}
16-
uses: actions/setup-node@v1
17-
with:
18-
node-version: ${{ matrix.node-version }}
19-
- run: npm ci
20-
- run: npm test
21-
- name: Codecov
22-
if: ${{ success() }}
23-
run: npm run report-coverage
24-
continue-on-error: true
18+
- uses: actions/checkout@v4
19+
persist-credentials: false
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
- run: npm clean-install
25+
- run: npm run test
26+
- name: Codecov
27+
if: ${{ success() }}
28+
run: npm run report-coverage
29+
continue-on-error: true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ let regex = regjsgen.generate(ast);
3030

3131
## Support
3232

33-
Tested on Node.js 16 and 18.<br>
33+
Tested on Node.js 16, 18, 20, and 22.<br>
3434
Compatible with regjsparser v0.12.0’s AST.
3535

3636

0 commit comments

Comments
 (0)