Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deploy E2E test setup #37126

Merged
merged 18 commits into from
May 23, 2022
3 changes: 2 additions & 1 deletion .github/workflows/build_test_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,8 @@ jobs:
testDeployE2E:
name: E2E (deploy)
runs-on: ubuntu-latest
needs: [publishRelease]
# todo revert after testing
needs: [build]
env:
NEXT_TELEMETRY_DISABLED: 1
NEXT_TEST_JOB: 1
Expand Down
7 changes: 6 additions & 1 deletion run-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,12 @@ async function main() {
)
})

if ((testType && testType !== 'unit') || hasIsolatedTests) {
if (
(testType &&
testType !== 'unit' &&
!process.env.NEXT_TEST_MODE === 'deploy') ||
ijjk marked this conversation as resolved.
Show resolved Hide resolved
hasIsolatedTests
) {
// for isolated next tests: e2e, dev, prod we create
// a starter Next.js install to re-use to speed up tests
// to avoid having to run yarn each time
Expand Down
3 changes: 2 additions & 1 deletion test/lib/next-modes/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ export class NextInstance {
process.env.NEXT_TEST_STARTER &&
!this.dependencies &&
!this.installCommand &&
!this.packageJson
!this.packageJson &&
!(global as any).isNextDeploy
) {
await fs.copy(process.env.NEXT_TEST_STARTER, this.testDir)
} else if (!skipIsolatedNext) {
Expand Down