Only run setup wizard in E2E tests

This commit is contained in:
Konstantin Wohlwend 2026-03-31 09:03:35 -07:00
parent 1a698b2295
commit 8c4951fc0a
2 changed files with 3 additions and 2 deletions

View File

@ -21,6 +21,7 @@ jobs:
STACK_DATABASE_CONNECTION_STRING: "postgres://postgres:PASSWORD-PLACEHOLDER--uqfEC1hmmv@localhost:8128/stackframe"
STACK_EXTERNAL_DB_SYNC_MAX_DURATION_MS: "20000"
STACK_EXTERNAL_DB_SYNC_DIRECT: "false"
STACK_RUN_SETUP_WIZARD_TESTS: ${{ matrix.freestyle-mode != 'prod' && 'true' || '' }}
strategy:
matrix:

View File

@ -3,8 +3,8 @@ import { describe } from "vitest";
import { it } from "../helpers";
describe("Setup wizard", () => {
// note that we run this only in CI environments
it.runIf(!!process.env.CI)("completes successfully", async ({ expect }) => {
// this test is opt-in and should only run when explicitly enabled
it.runIf(process.env.STACK_RUN_SETUP_WIZARD_TESTS === "true")("completes successfully", async ({ expect }) => {
const [error, stdout, stderr] = await new Promise<[Error | null, string, string]>((resolve) => {
exec("pnpm -C packages/init-stack run test-run", (error, stdout, stderr) => {
resolve([error, stdout, stderr]);