mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Only run setup wizard in E2E tests
This commit is contained in:
parent
1a698b2295
commit
8c4951fc0a
1
.github/workflows/e2e-api-tests.yaml
vendored
1
.github/workflows/e2e-api-tests.yaml
vendored
@ -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:
|
||||
|
||||
@ -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]);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user