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 7c37b77
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 @@ -22,6 +22,8 @@ jobs:
- run: npm install
- run: npm run build
- run: npm test
env:
NODE_OPTIONS: ${{ matrix.node-version == '22.x' && '--experimental-require-module' || '' }}

- name: Deploy docs
if: github.ref == 'refs/heads/main' && matrix.node-version == 'v20.8.0'
Expand Down

0 comments on commit 7c37b77

Please sign in to comment.