Skip to content

Commit 7355322

Browse files
committed
ci: windows compat for fetch-retry patch
1 parent 222c189 commit 7355322

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/run-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
141141
NEXT_VERSION: ${{ matrix.version }}
142142
NEXT_RESOLVED_VERSION: ${{ steps.resolve-next-version.outputs.version }}
143-
NODE_OPTIONS: --import ${{ github.workspace }}/tools/fetch-retry.mjs
143+
NODE_OPTIONS: --import file://${{ github.workspace }}/tools/fetch-retry.mjs
144144
- name: Upload blob report to GitHub Actions Artifacts
145145
uses: actions/upload-artifact@v5
146146
if: always()
@@ -235,15 +235,15 @@ jobs:
235235
env:
236236
NEXT_VERSION: ${{ matrix.version }}
237237
NEXT_RESOLVED_VERSION: ${{ steps.resolve-next-version.outputs.version }}
238-
NODE_OPTIONS: --import ${{ github.workspace }}/tools/fetch-retry.mjs
238+
NODE_OPTIONS: --import file://${{ github.workspace }}/tools/fetch-retry.mjs
239239
- name: "Unit and integration tests"
240240
run: npm run test:ci:unit-and-integration -- --shard=${{ matrix.shard }}/8
241241
env:
242242
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
243243
NEXT_VERSION: ${{ matrix.version }}
244244
NEXT_RESOLVED_VERSION: ${{ steps.resolve-next-version.outputs.version }}
245245
TEMP: ${{ github.workspace }}/..
246-
NODE_OPTIONS: --import ${{ github.workspace }}/tools/fetch-retry.mjs
246+
NODE_OPTIONS: --import file://${{ github.workspace }}/tools/fetch-retry.mjs
247247

248248
smoke:
249249
if: always()
@@ -304,7 +304,7 @@ jobs:
304304
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
305305
NEXT_VERSION: ${{ matrix.version }}
306306
NEXT_RESOLVED_VERSION: ${{ steps.resolve-next-version.outputs.version }}
307-
NODE_OPTIONS: --import ${{ github.workspace }}/tools/fetch-retry.mjs
307+
NODE_OPTIONS: --import file://${{ github.workspace }}/tools/fetch-retry.mjs
308308

309309
merge-reports:
310310
if: always()

0 commit comments

Comments
 (0)