Skip to content

Commit

Permalink
Node 20 changed enperimental loaders. Fix running tests on node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
MaybeJustJames committed May 8, 2023
1 parent afba275 commit 70e2c0d
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
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x, 20.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
Original file line number Diff line number Diff line change
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 70e2c0d

Please sign in to comment.