Skip to content

Commit 5abd081

Browse files
committed
Merge branch 'rs/riot-middleware' of github.com:netlify/netlify-plugin-nextjs into rs/riot-middleware
2 parents 0195f49 + 968c030 commit 5abd081

11 files changed

+885
-456
lines changed

.github/workflows/e2e-report.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Download latest e2e results
3131
if: ${{ steps.get-run-id.outputs.runId }}
3232
run: |
33-
echo "Downloading latest test results from run https://github.com/netlify/next-runtime-minimal/actions/runs/${{ steps.get-run-id.outputs.runId }}"
33+
echo "Downloading latest test results from run https://github.com/netlify/next-runtime/actions/runs/${{ steps.get-run-id.outputs.runId }}"
3434
rm e2e-report/data/test-results.json
3535
gh run download ${{ steps.get-run-id.outputs.runId }} -n "latest-test-results.json" -D e2e-report/data/ --repo $GITHUB_REPOSITORY
3636
- name: Install site dependencies

.github/workflows/run-tests.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -255,13 +255,14 @@ jobs:
255255
npx playwright merge-reports --reporter html ./all-blob-reports
256256
npx playwright merge-reports --reporter json ./all-blob-reports > merged_reports.json
257257
258-
- name: Notify Slack
259-
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.head_ref == 'main'
260-
run: npx playwright-slack-report -j merged_reports.json -c tests/playwright-slack-conf.json
261-
env:
262-
SLACK_BOT_USER_OAUTH_TOKEN: ${{ secrets.SLACK_BOT_USER_OAUTH_TOKEN }}
263-
RESULTS_VERSION: ${{ matrix.version }}
264-
RESULTS_URL: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}
258+
# FIXME(serhalp) Once we recover access to the SquidlifyBot Slack App, reenable this.
259+
# - name: Notify Slack
260+
# if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.head_ref == 'main'
261+
# run: npx playwright-slack-report -j merged_reports.json -c tests/playwright-slack-conf.json
262+
# env:
263+
# SLACK_BOT_USER_OAUTH_TOKEN: ${{ secrets.SLACK_BOT_USER_OAUTH_TOKEN }}
264+
# RESULTS_VERSION: ${{ matrix.version }}
265+
# RESULTS_URL: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}
265266

266267
- name: Upload HTML report
267268
uses: actions/upload-artifact@v4

.github/workflows/test-e2e.yml

+17-15
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ env:
3939
NETLIFY_SITE_ID: 1d5a5c76-d445-4ae5-b694-b0d3f2e2c395
4040
NEXT_TEST_CONTINUE_ON_ERROR: 1
4141
next-path: next.js
42-
runtime-path: next-runtime-minimal
42+
runtime-path: next-runtime
4343
GH_TOKEN: ${{ github.token }}
4444
jobs:
4545
setup:
@@ -143,7 +143,7 @@ jobs:
143143
uses: actions/cache@v4
144144
with:
145145
path: ${{ steps.npm-cache.outputs.PATH }}
146-
key: node-cache-${{ hashFiles('next-runtime-minimal/package-lock.json') }}
146+
key: node-cache-${{ hashFiles('next-runtime/package-lock.json') }}
147147
restore-keys: |
148148
node-cache-
149149
@@ -191,11 +191,11 @@ jobs:
191191
run: |
192192
# This is when the manifest version was changed
193193
if [ `npx semver -p -r ">=14.0.4-canary.26" ${{ matrix.version_spec.version }}` ]; then
194-
echo "filters=../next-runtime-minimal/tests/netlify-e2e.cjs" >> $GITHUB_OUTPUT
195-
echo "skip-retry=../next-runtime-minimal/tests/e2e-skip-retry.json" >> $GITHUB_OUTPUT
194+
echo "filters=../next-runtime/tests/netlify-e2e.cjs" >> $GITHUB_OUTPUT
195+
echo "skip-retry=../next-runtime/tests/e2e-skip-retry.json" >> $GITHUB_OUTPUT
196196
else
197-
echo "filters=../next-runtime-minimal/tests/netlify-e2e-legacy.json" >> $GITHUB_OUTPUT
198-
echo "skip-retry=../next-runtime-minimal/tests/e2e-skip-retry-legacy.json" >> $GITHUB_OUTPUT
197+
echo "filters=../next-runtime/tests/netlify-e2e-legacy.json" >> $GITHUB_OUTPUT
198+
echo "skip-retry=../next-runtime/tests/e2e-skip-retry-legacy.json" >> $GITHUB_OUTPUT
199199
fi
200200
201201
- name: run tests
@@ -243,7 +243,7 @@ jobs:
243243
- name: Get and format Github issues
244244
if: success() || failure()
245245
run: |
246-
gh issue list --label "Next.js e2e test failure" --json number,body > report/issues.json
246+
gh issue list --label "Next.js e2e test failure" --json url,body > report/issues.json
247247
deno run -A tools/deno/ghIssues2json.ts tests/test-config.json report/issues.json
248248
249249
- name: Publish Test Report
@@ -261,11 +261,13 @@ jobs:
261261
with:
262262
name: ${{matrix.version_spec.selector}}-test-results.json
263263
path: report/test-results.json
264-
- name: Notify Slack
265-
if: ${{ (success() || failure()) && github.event_name == 'schedule' }}
266-
uses: slackapi/[email protected]
267-
env:
268-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
269-
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
270-
with:
271-
payload: ${{ steps.publish-test-results.outputs.slackEvent }}
264+
265+
# FIXME(serhalp) Once we recover access to the SquidlifyBot Slack App, reenable this.
266+
# - name: Notify Slack
267+
# if: ${{ (success() || failure()) && github.event_name == 'schedule' }}
268+
# uses: slackapi/[email protected]
269+
# env:
270+
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
271+
# SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
272+
# with:
273+
# payload: ${{ steps.publish-test-results.outputs.slackEvent }}

0 commit comments

Comments
 (0)