1- name : " Run tests"
1+ name : ' Run tests'
22on :
33 pull_request :
44 branches : [main]
55 schedule :
6- - cron : " 0 6 * * *" # Run every day at 6am UTC
6+ - cron : ' 0 6 * * *' # Run every day at 6am UTC
77 workflow_dispatch :
88 inputs :
99 versions :
10- description : " The versions of Next.js to test against (quoted and comma separated)"
10+ description : ' The versions of Next.js to test against (quoted and comma separated)'
1111 required : false
12- default : " latest"
12+ default : ' latest'
1313
1414jobs :
1515 setup :
@@ -65,12 +65,12 @@ jobs:
6565 fi
6666 echo "version=$NODE_VERSION" >> $GITHUB_OUTPUT
6767 echo "Node version for 'next@${{ matrix.version }}' is '$NODE_VERSION'"
68- - name : " Install Node"
68+ - name : ' Install Node'
6969 uses : actions/setup-node@v5
7070 with :
7171 node-version : ${{ steps.decide-node-version.outputs.version }}
72- cache : " npm"
73- cache-dependency-path : " **/package-lock.json"
72+ cache : ' npm'
73+ cache-dependency-path : ' **/package-lock.json'
7474 - uses : oven-sh/setup-bun@v2
7575 - name : setup pnpm/yarn
7676 run : |
8282 with :
8383 # Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/build/blob/main/packages/edge-bundler/node/bridge.ts#L20
8484 deno-version : v2.2.4
85- - name : " Install dependencies"
85+ - name : ' Install dependencies'
8686 run : npm ci
87- - name : " Prepare Netlify CLI"
87+ - name : ' Prepare Netlify CLI'
8888 env :
8989 NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
9090 run : |
9797 - uses : actions/cache@v4
9898 id : playwright-cache
9999 with :
100- path : " ~/.cache/ms-playwright"
101- key : " ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}"
100+ path : ' ~/.cache/ms-playwright'
101+ key : ' ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}'
102102 restore-keys : |
103103 ${{ runner.os }}-playwright-
104104 - name : Install Playwright Browsers
@@ -124,13 +124,6 @@ jobs:
124124 name : blob-report-${{matrix.version}}-${{ matrix.shard }}
125125 path : blob-report
126126 retention-days : 1
127- - name : Upload debug artifacts
128- uses : actions/upload-artifact@v4
129- if : always()
130- with :
131- name : debug-artifacts-${{matrix.version}}-${{ matrix.shard }}
132- path : debug-artifacts
133- retention-days : 1
134127
135128 test :
136129 needs : setup
@@ -142,9 +135,9 @@ jobs:
142135 version : ${{ fromJson(needs.setup.outputs.matrix) }}
143136 exclude :
144137 - os : windows-2025
145- version : " 13.5.1"
138+ version : ' 13.5.1'
146139 - os : windows-2025
147- version : " 14.2.15"
140+ version : ' 14.2.15'
148141 runs-on : ${{ matrix.os }}
149142 steps :
150143 - uses : actions/checkout@v5
@@ -161,12 +154,12 @@ jobs:
161154 fi
162155 echo "version=$NODE_VERSION" >> $GITHUB_OUTPUT
163156 echo "Node version for 'next@${{ matrix.version }}' is '$NODE_VERSION'"
164- - name : " Install Node"
157+ - name : ' Install Node'
165158 uses : actions/setup-node@v5
166159 with :
167160 node-version : ${{ steps.decide-node-version.outputs.version }}
168- cache : " npm"
169- cache-dependency-path : " **/package-lock.json"
161+ cache : ' npm'
162+ cache-dependency-path : ' **/package-lock.json'
170163 - name : Prefer npm global on windows
171164 if : runner.os == 'Windows'
172165 # On Windows by default PATH prefers corepack bundled with Node.js
@@ -185,11 +178,11 @@ jobs:
185178 with :
186179 # Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/edge-bundler/blob/e55f825bd985d3c92e21d1b765d71e70d5628fba/node/bridge.ts#L17
187180 deno-version : v2.2.4
188- - name : " Install dependencies"
181+ - name : ' Install dependencies'
189182 run : npm ci
190- - name : " Build"
183+ - name : ' Build'
191184 run : npm run build
192- - name : " Vendor deno helpers for integration tests"
185+ - name : ' Vendor deno helpers for integration tests'
193186 run : node tools/vendor-deno-tools.js
194187 - name : Resolve Next.js version
195188 id : resolve-next-version
@@ -214,13 +207,13 @@ jobs:
214207 key :
215208 integration-fixtures-${{ runner.os }}-${{steps.resolve-next-version.outputs.version}}-${{
216209 steps.fixture-cache-key.outputs.key }}
217- - name : " Prepare Fixtures"
210+ - name : ' Prepare Fixtures'
218211 if : steps.cache-fixtures.outputs.cache-hit != 'true'
219212 run : npm run pretest
220213 env :
221214 NEXT_VERSION : ${{ matrix.version }}
222215 NEXT_RESOLVED_VERSION : ${{ steps.resolve-next-version.outputs.version }}
223- - name : " Unit and integration tests"
216+ - name : ' Unit and integration tests'
224217 run : npm run test:ci:unit-and-integration -- --shard=${{ matrix.shard }}/8
225218 env :
226219 NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
@@ -251,12 +244,12 @@ jobs:
251244 fi
252245 echo "version=$NODE_VERSION" >> $GITHUB_OUTPUT
253246 echo "Node version for 'next@${{ matrix.version }}' is '$NODE_VERSION'"
254- - name : " Install Node"
247+ - name : ' Install Node'
255248 uses : actions/setup-node@v5
256249 with :
257250 node-version : ${{ steps.decide-node-version.outputs.version }}
258- cache : " npm"
259- cache-dependency-path : " **/package-lock.json"
251+ cache : ' npm'
252+ cache-dependency-path : ' **/package-lock.json'
260253 - name : setup pnpm/yarn
261254 run : corepack enable
262255 shell : bash
@@ -265,11 +258,11 @@ jobs:
265258 with :
266259 # Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/build/blob/main/packages/edge-bundler/node/bridge.ts#L20
267260 deno-version : v2.2.4
268- - name : " Install dependencies"
261+ - name : ' Install dependencies'
269262 run : npm ci
270- - name : " Build"
263+ - name : ' Build'
271264 run : npm run build
272- - name : " Prepare Netlify CLI"
265+ - name : ' Prepare Netlify CLI'
273266 env :
274267 NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
275268 run : |
@@ -283,7 +276,7 @@ jobs:
283276 RESOLVED_VERSION=$(npm view next@${{ matrix.version }} version)
284277 echo "version=$RESOLVED_VERSION" >> $GITHUB_OUTPUT
285278 echo "Resolved Next.js version for 'next@${{ matrix.version }}' is '$RESOLVED_VERSION'"
286- - name : " Smoke tests"
279+ - name : ' Smoke tests'
287280 run : npm run test:ci:smoke
288281 env :
289282 NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
@@ -292,36 +285,36 @@ jobs:
292285
293286 merge-reports :
294287 if : always()
295- needs : [setup, e2e]
288+ needs : [setup,e2e]
296289 strategy :
297290 fail-fast : false
298291 matrix :
299292 version : ${{ fromJson(needs.setup.outputs.matrix) }}
300293
301294 runs-on : ubuntu-latest
302295 steps :
303- - uses : actions/checkout@v5
304- - uses : actions/setup-node@v5
305- with :
306- node-version : 18
307- - name : Install dependencies
308- run : npm ci
296+ - uses : actions/checkout@v5
297+ - uses : actions/setup-node@v5
298+ with :
299+ node-version : 18
300+ - name : Install dependencies
301+ run : npm ci
309302
310- - name : Download blob reports from GitHub Actions Artifacts
311- uses : actions/download-artifact@v5
312- with :
313- path : all-blob-reports
314- pattern : blob-report-${{ matrix.version }}-*
315- merge-multiple : true
303+ - name : Download blob reports from GitHub Actions Artifacts
304+ uses : actions/download-artifact@v5
305+ with :
306+ path : all-blob-reports
307+ pattern : blob-report-${{ matrix.version }}-*
308+ merge-multiple : true
316309
317- - name : Merge reports
318- run : |
319- npx playwright merge-reports --reporter html ./all-blob-reports
320- npx playwright merge-reports --reporter json ./all-blob-reports > merged_reports.json
310+ - name : Merge reports
311+ run : |
312+ npx playwright merge-reports --reporter html ./all-blob-reports
313+ npx playwright merge-reports --reporter json ./all-blob-reports > merged_reports.json
321314
322- - name : Upload HTML report
323- uses : actions/upload-artifact@v4
324- with :
325- name : html-report-${{ matrix.version }}-attempt-${{ github.run_attempt }}
326- path : playwright-report
327- retention-days : 14
315+ - name : Upload HTML report
316+ uses : actions/upload-artifact@v4
317+ with :
318+ name : html-report-${{ matrix.version }}-attempt-${{ github.run_attempt }}
319+ path : playwright-report
320+ retention-days : 14
0 commit comments