7070
7171 core.setOutput('matrix', JSON.stringify(normalizedVersionsInputArray));
7272 } else if ('${{ github.event_name }}' === 'schedule' || versionsToTest === 'all') {
73- core.setOutput('matrix', '["latest", "canary", " 15.5.9", "14.2.35", "13.5.1 "]');
73+ core.setOutput('matrix', '["15.5.9"]');
7474 } else if (versionsToTest === 'latest-and-canary') {
7575 core.setOutput('matrix', '["latest", "canary"]');
7676 } else {
@@ -87,88 +87,88 @@ jobs:
8787 core.setOutput('os', '["ubuntu-latest"]');
8888 }
8989
90- e2e :
91- needs : setup
92- runs-on : ubuntu-latest
93- strategy :
94- fail-fast : false
95- matrix :
96- version : ${{ fromJson(needs.setup.outputs.matrix) }}
97- shard : [1, 2, 3, 4, 5]
90+ # e2e:
91+ # needs: setup
92+ # runs-on: ubuntu-latest
93+ # strategy:
94+ # fail-fast: false
95+ # matrix:
96+ # version: ${{ fromJson(needs.setup.outputs.matrix) }}
97+ # shard: [1, 2, 3, 4, 5]
9898
99- steps :
100- - uses : actions/checkout@v6
101- - name : Resolve Next.js version
102- id : resolve-next-version
103- shell : bash
104- run : |
105- RESOLVED_VERSION=$(npm view next@${{ matrix.version }} version)
106- echo "version=$RESOLVED_VERSION" >> $GITHUB_OUTPUT
107- echo "Resolved Next.js version for 'next@${{ matrix.version }}' is '$RESOLVED_VERSION'"
108- - name : Decide Node Version
109- id : decide-node-version
110- shell : bash
111- run : |
112- NODE_VERSION=18.x
113- if [[ "${{ steps.resolve-next-version.outputs.version }}" == "16."* ]]; then
114- # Next@16 requires Node.js 20+
115- NODE_VERSION=20.x
116- fi
117- echo "version=$NODE_VERSION" >> $GITHUB_OUTPUT
118- echo "Node version for 'next@${{ steps.resolve-next-version.outputs.version }}' is '$NODE_VERSION'"
119- - name : " Install Node"
120- uses : actions/setup-node@v6
121- with :
122- node-version : ${{ steps.decide-node-version.outputs.version }}
123- cache : " npm"
124- cache-dependency-path : " **/package-lock.json"
125- - uses : oven-sh/setup-bun@v2
126- - name : setup pnpm/yarn
127- run : |
128- npm install -g corepack
129- corepack enable
130- shell : bash
131- - name : Install Deno
132- uses : denoland/setup-deno@v1
133- with :
134- # Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/build/blob/main/packages/edge-bundler/node/bridge.ts#L20
135- deno-version : 2.5.6
136- - name : " Install dependencies"
137- run : npm ci
138- - name : " Prepare Netlify CLI"
139- env :
140- NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
141- run : |
142- # Control netlify-cli as a regular dev dep but expose it globally for test fixtures to use
143- npm install -g "netlify-cli@$(npm list --json --depth=0 netlify-cli | jq -r ".dependencies[\"netlify-cli\"].version")"
144- npx netlify login
145- - name : Get installed Playwright version
146- id : playwright-version
147- run : echo "version=$(npm view @playwright/test version)" >> $GITHUB_OUTPUT
148- - uses : actions/cache@v5
149- id : playwright-cache
150- with :
151- path : " ~/.cache/ms-playwright"
152- key : " ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}"
153- restore-keys : |
154- ${{ runner.os }}-playwright-
155- - name : Install Playwright Browsers
156- if : steps.playwright-cache.outputs.cache-hit != 'true'
157- run : npx playwright install --with-deps
158- - name : Run Playwright tests
159- run : npm run test:ci:e2e -- --shard=${{ matrix.shard }}/5
160- env :
161- NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
162- NEXT_VERSION : ${{ matrix.version }}
163- NEXT_RESOLVED_VERSION : ${{ steps.resolve-next-version.outputs.version }}
164- NODE_OPTIONS : --import file://${{ github.workspace }}/tools/fetch-retry.mjs
165- - name : Upload blob report to GitHub Actions Artifacts
166- uses : actions/upload-artifact@v6
167- if : always()
168- with :
169- name : blob-report-${{matrix.version}}-${{ matrix.shard }}
170- path : blob-report
171- retention-days : 1
99+ # steps:
100+ # - uses: actions/checkout@v6
101+ # - name: Resolve Next.js version
102+ # id: resolve-next-version
103+ # shell: bash
104+ # run: |
105+ # RESOLVED_VERSION=$(npm view next@${{ matrix.version }} version)
106+ # echo "version=$RESOLVED_VERSION" >> $GITHUB_OUTPUT
107+ # echo "Resolved Next.js version for 'next@${{ matrix.version }}' is '$RESOLVED_VERSION'"
108+ # - name: Decide Node Version
109+ # id: decide-node-version
110+ # shell: bash
111+ # run: |
112+ # NODE_VERSION=18.x
113+ # if [[ "${{ steps.resolve-next-version.outputs.version }}" == "16."* ]]; then
114+ # # Next@16 requires Node.js 20+
115+ # NODE_VERSION=20.x
116+ # fi
117+ # echo "version=$NODE_VERSION" >> $GITHUB_OUTPUT
118+ # echo "Node version for 'next@${{ steps.resolve-next-version.outputs.version }}' is '$NODE_VERSION'"
119+ # - name: "Install Node"
120+ # uses: actions/setup-node@v6
121+ # with:
122+ # node-version: ${{ steps.decide-node-version.outputs.version }}
123+ # cache: "npm"
124+ # cache-dependency-path: "**/package-lock.json"
125+ # - uses: oven-sh/setup-bun@v2
126+ # - name: setup pnpm/yarn
127+ # run: |
128+ # npm install -g corepack
129+ # corepack enable
130+ # shell: bash
131+ # - name: Install Deno
132+ # uses: denoland/setup-deno@v1
133+ # with:
134+ # # Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/build/blob/main/packages/edge-bundler/node/bridge.ts#L20
135+ # deno-version: 2.5.6
136+ # - name: "Install dependencies"
137+ # run: npm ci
138+ # - name: "Prepare Netlify CLI"
139+ # env:
140+ # NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
141+ # run: |
142+ # # Control netlify-cli as a regular dev dep but expose it globally for test fixtures to use
143+ # npm install -g "netlify-cli@$(npm list --json --depth=0 netlify-cli | jq -r ".dependencies[\"netlify-cli\"].version")"
144+ # npx netlify login
145+ # - name: Get installed Playwright version
146+ # id: playwright-version
147+ # run: echo "version=$(npm view @playwright/test version)" >> $GITHUB_OUTPUT
148+ # - uses: actions/cache@v5
149+ # id: playwright-cache
150+ # with:
151+ # path: "~/.cache/ms-playwright"
152+ # key: "${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}"
153+ # restore-keys: |
154+ # ${{ runner.os }}-playwright-
155+ # - name: Install Playwright Browsers
156+ # if: steps.playwright-cache.outputs.cache-hit != 'true'
157+ # run: npx playwright install --with-deps
158+ # - name: Run Playwright tests
159+ # run: npm run test:ci:e2e -- --shard=${{ matrix.shard }}/5
160+ # env:
161+ # NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
162+ # NEXT_VERSION: ${{ matrix.version }}
163+ # NEXT_RESOLVED_VERSION: ${{ steps.resolve-next-version.outputs.version }}
164+ # NODE_OPTIONS: --import file://${{ github.workspace }}/tools/fetch-retry.mjs
165+ # - name: Upload blob report to GitHub Actions Artifacts
166+ # uses: actions/upload-artifact@v6
167+ # if: always()
168+ # with:
169+ # name: blob-report-${{matrix.version}}-${{ matrix.shard }}
170+ # path: blob-report
171+ # retention-days: 1
172172
173173 test :
174174 needs : setup
@@ -260,99 +260,99 @@ jobs:
260260 TEMP : ${{ github.workspace }}/..
261261 NODE_OPTIONS : --import file://${{ github.workspace }}/tools/fetch-retry.mjs
262262
263- smoke :
264- if : always()
265- needs : setup
266- runs-on : ubuntu-latest
267- strategy :
268- fail-fast : false
269- matrix :
270- version : ${{ fromJson(needs.setup.outputs.matrix) }}
271- steps :
272- - uses : actions/checkout@v6
273- - name : Resolve Next.js version
274- id : resolve-next-version
275- shell : bash
276- run : |
277- RESOLVED_VERSION=$(npm view next@${{ matrix.version }} version)
278- echo "version=$RESOLVED_VERSION" >> $GITHUB_OUTPUT
279- echo "Resolved Next.js version for 'next@${{ matrix.version }}' is '$RESOLVED_VERSION'"
280- - name : Decide Node Version
281- id : decide-node-version
282- shell : bash
283- run : |
284- NODE_VERSION=18.x
285- if [[ "${{ steps.resolve-next-version.outputs.version }}" == "16."* ]]; then
286- # Next@16 requires Node.js 20+
287- NODE_VERSION=20.x
288- fi
289- echo "version=$NODE_VERSION" >> $GITHUB_OUTPUT
290- echo "Node version for 'next@${{ matrix.version }}' is '$NODE_VERSION'"
291- - name : " Install Node"
292- uses : actions/setup-node@v6
293- with :
294- node-version : ${{ steps.decide-node-version.outputs.version }}
295- cache : " npm"
296- cache-dependency-path : " **/package-lock.json"
297- - name : setup pnpm/yarn
298- run : corepack enable
299- shell : bash
300- - name : Install Deno
301- uses : denoland/setup-deno@v1
302- with :
303- # Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/build/blob/main/packages/edge-bundler/node/bridge.ts#L20
304- deno-version : 2.5.6
305- - name : " Install dependencies"
306- run : npm ci
307- - name : " Build"
308- run : npm run build
309- - name : " Prepare Netlify CLI"
310- env :
311- NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
312- run : |
313- # Control netlify-cli as a regular dev dep but expose it globally for test fixtures to use
314- npm install -g "netlify-cli@$(npm list --json --depth=0 netlify-cli | jq -r ".dependencies[\"netlify-cli\"].version")"
315- npx netlify login
316- - name : " Smoke tests"
317- run : npm run test:ci:smoke
318- env :
319- NETLIFY_AUTH_TOKEN : ${{ secrets.NETLIFY_AUTH_TOKEN }}
320- NEXT_VERSION : ${{ matrix.version }}
321- NEXT_RESOLVED_VERSION : ${{ steps.resolve-next-version.outputs.version }}
322- NODE_OPTIONS : --import file://${{ github.workspace }}/tools/fetch-retry.mjs
263+ # smoke:
264+ # if: always()
265+ # needs: setup
266+ # runs-on: ubuntu-latest
267+ # strategy:
268+ # fail-fast: false
269+ # matrix:
270+ # version: ${{ fromJson(needs.setup.outputs.matrix) }}
271+ # steps:
272+ # - uses: actions/checkout@v6
273+ # - name: Resolve Next.js version
274+ # id: resolve-next-version
275+ # shell: bash
276+ # run: |
277+ # RESOLVED_VERSION=$(npm view next@${{ matrix.version }} version)
278+ # echo "version=$RESOLVED_VERSION" >> $GITHUB_OUTPUT
279+ # echo "Resolved Next.js version for 'next@${{ matrix.version }}' is '$RESOLVED_VERSION'"
280+ # - name: Decide Node Version
281+ # id: decide-node-version
282+ # shell: bash
283+ # run: |
284+ # NODE_VERSION=18.x
285+ # if [[ "${{ steps.resolve-next-version.outputs.version }}" == "16."* ]]; then
286+ # # Next@16 requires Node.js 20+
287+ # NODE_VERSION=20.x
288+ # fi
289+ # echo "version=$NODE_VERSION" >> $GITHUB_OUTPUT
290+ # echo "Node version for 'next@${{ matrix.version }}' is '$NODE_VERSION'"
291+ # - name: "Install Node"
292+ # uses: actions/setup-node@v6
293+ # with:
294+ # node-version: ${{ steps.decide-node-version.outputs.version }}
295+ # cache: "npm"
296+ # cache-dependency-path: "**/package-lock.json"
297+ # - name: setup pnpm/yarn
298+ # run: corepack enable
299+ # shell: bash
300+ # - name: Install Deno
301+ # uses: denoland/setup-deno@v1
302+ # with:
303+ # # Should match the `DENO_VERSION_RANGE` from https://github.com/netlify/build/blob/main/packages/edge-bundler/node/bridge.ts#L20
304+ # deno-version: 2.5.6
305+ # - name: "Install dependencies"
306+ # run: npm ci
307+ # - name: "Build"
308+ # run: npm run build
309+ # - name: "Prepare Netlify CLI"
310+ # env:
311+ # NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
312+ # run: |
313+ # # Control netlify-cli as a regular dev dep but expose it globally for test fixtures to use
314+ # npm install -g "netlify-cli@$(npm list --json --depth=0 netlify-cli | jq -r ".dependencies[\"netlify-cli\"].version")"
315+ # npx netlify login
316+ # - name: "Smoke tests"
317+ # run: npm run test:ci:smoke
318+ # env:
319+ # NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
320+ # NEXT_VERSION: ${{ matrix.version }}
321+ # NEXT_RESOLVED_VERSION: ${{ steps.resolve-next-version.outputs.version }}
322+ # NODE_OPTIONS: --import file://${{ github.workspace }}/tools/fetch-retry.mjs
323323
324- merge-reports :
325- if : always()
326- needs : [setup, e2e]
327- strategy :
328- fail-fast : false
329- matrix :
330- version : ${{ fromJson(needs.setup.outputs.matrix) }}
324+ # merge-reports:
325+ # if: always()
326+ # needs: [setup, e2e]
327+ # strategy:
328+ # fail-fast: false
329+ # matrix:
330+ # version: ${{ fromJson(needs.setup.outputs.matrix) }}
331331
332- runs-on : ubuntu-latest
333- steps :
334- - uses : actions/checkout@v6
335- - uses : actions/setup-node@v6
336- with :
337- node-version : 18
338- - name : Install dependencies
339- run : npm ci
332+ # runs-on: ubuntu-latest
333+ # steps:
334+ # - uses: actions/checkout@v6
335+ # - uses: actions/setup-node@v6
336+ # with:
337+ # node-version: 18
338+ # - name: Install dependencies
339+ # run: npm ci
340340
341- - name : Download blob reports from GitHub Actions Artifacts
342- uses : actions/download-artifact@v7
343- with :
344- path : all-blob-reports
345- pattern : blob-report-${{ matrix.version }}-*
346- merge-multiple : true
341+ # - name: Download blob reports from GitHub Actions Artifacts
342+ # uses: actions/download-artifact@v7
343+ # with:
344+ # path: all-blob-reports
345+ # pattern: blob-report-${{ matrix.version }}-*
346+ # merge-multiple: true
347347
348- - name : Merge reports
349- run : |
350- npx playwright merge-reports --reporter html ./all-blob-reports
351- npx playwright merge-reports --reporter json ./all-blob-reports > merged_reports.json
348+ # - name: Merge reports
349+ # run: |
350+ # npx playwright merge-reports --reporter html ./all-blob-reports
351+ # npx playwright merge-reports --reporter json ./all-blob-reports > merged_reports.json
352352
353- - name : Upload HTML report
354- uses : actions/upload-artifact@v6
355- with :
356- name : html-report-${{ matrix.version }}-attempt-${{ github.run_attempt }}
357- path : playwright-report
358- retention-days : 14
353+ # - name: Upload HTML report
354+ # uses: actions/upload-artifact@v6
355+ # with:
356+ # name: html-report-${{ matrix.version }}-attempt-${{ github.run_attempt }}
357+ # path: playwright-report
358+ # retention-days: 14
0 commit comments