Skip to content

Commit

Permalink
Try using experimental-require-module in Node v22 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed Nov 6, 2024
1 parent a596a73 commit a9f8e92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x, v20.8.0, '*']
node-version: [14.x, 16.x, 18.x, 20.x, v20.8.0, 22.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -18,6 +18,8 @@ jobs:
check-latest: true
cache: 'npm'
cache-dependency-path: 'package.json'
env:
NODE_OPTIONS: ${{ matrix.node-version == '22.x' && '--experimental-require-module' || '' }}

- run: npm install
- run: npm run build
Expand Down

0 comments on commit a9f8e92

Please sign in to comment.