Unverified Commit 6440778d authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Update test E2E deploy workflow to accept version (#79420)

This allows us to run the E2E deploy tests against a custom tarball or
version without triggering a canary release.
parent 4eb05ea8
...@@ -6,6 +6,11 @@ on: ...@@ -6,6 +6,11 @@ on:
types: [published] types: [published]
# allow triggering manually as well # allow triggering manually as well
workflow_dispatch: workflow_dispatch:
inputs:
nextVersion:
description: canary or custom tarball URL
default: canary
type: string
env: env:
VERCEL_TEST_TEAM: vtest314-next-e2e-tests VERCEL_TEST_TEAM: vtest314-next-e2e-tests
...@@ -54,7 +59,7 @@ jobs: ...@@ -54,7 +59,7 @@ jobs:
matrix: matrix:
group: [1/6, 2/6, 3/6, 4/6, 5/6, 6/6] group: [1/6, 2/6, 3/6, 4/6, 5/6, 6/6]
with: with:
afterBuild: npm i -g vercel@latest && NEXT_E2E_TEST_TIMEOUT=240000 NEXT_TEST_MODE=deploy NEXT_EXTERNAL_TESTS_FILTERS="test/deploy-tests-manifest.json" node run-tests.js --timings -g ${{ matrix.group }} -c 2 --type e2e afterBuild: npm i -g vercel@latest && NEXT_E2E_TEST_TIMEOUT=240000 NEXT_TEST_MODE=deploy NEXT_EXTERNAL_TESTS_FILTERS="test/deploy-tests-manifest.json" NEXT_TEST_VERSION="${{ github.event.inputs.nextVersion || 'canary' }}" node run-tests.js --timings -g ${{ matrix.group }} -c 2 --type e2e
skipNativeBuild: 'yes' skipNativeBuild: 'yes'
skipNativeInstall: 'no' skipNativeInstall: 'no'
stepName: 'test-deploy-${{ matrix.group }}' stepName: 'test-deploy-${{ matrix.group }}'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment