Skip to content

Commit

Permalink
Run CI on node 20 rather than node 19
Browse files Browse the repository at this point in the history
Node 20 changed experimental loaders. Fix running tests on node 20:
* https://nodejs.org/en/blog/announcements/v20-release-announce
* TypeStrong/ts-node#1997
* avajs/ava#2593 (comment)
  • Loading branch information
MaybeJustJames committed May 8, 2023
1 parent 20db946 commit addd723
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/test.yml
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x, 19.x]
node-version: [16, 18, 20]

steps:
- uses: actions/checkout@v3
Expand All @@ -27,4 +27,12 @@ jobs:
- run: npm ci --timing
- run: npm run lint
- run: npm run build:debug
- run: npm test
- name: "Run tests on Node 20"
run: npm test
if: matrix.node-version == 20
env:
NODE_OPTIONS: "--loader=tsx"
- name: "Run tests on Node < 20"
run: npm test
if: matrix.node-version < 20
...
90 changes: 90 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -58,6 +58,7 @@
"purs-tidy": "0.9.3",
"spago": "^0.21.0",
"ts-node": "10.9.1",
"tsx": "^3.12.7",
"typescript": "5.0.4"
},
"ava": {
Expand Down

0 comments on commit addd723

Please sign in to comment.