From 7c37b7733f770a4b763224a0fa602b7109a29167 Mon Sep 17 00:00:00 2001 From: Tim Perry Date: Wed, 6 Nov 2024 19:14:20 +0100 Subject: [PATCH] Try using experimental-require-module in Node v22 tests --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 074e2a0..687bb76 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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'