fix(ci): add stub RESEND_API_KEY + HELCIM_API_TOKEN to satisfy validate-env
server/plugins/validate-env.js process.exit(1)s on boot when these are missing — the playwright job's 'Start server' step backgrounds the process and returns instantly, so the crash was silent until 'Wait for server' timed out at 30s. Stub values are safe: ALLOW_DEV_TEST_ENDPOINTS=true short-circuits the Resend call in invite.post.js, and Helcim API calls are mocked at the page.route level in join-flow.spec.js.
This commit is contained in:
parent
f62fd4f586
commit
9ddb45c4d8
1 changed files with 4 additions and 0 deletions
|
|
@ -29,6 +29,8 @@ jobs:
|
||||||
env:
|
env:
|
||||||
MONGODB_URI: mongodb://localhost:27017/ghostguild-test
|
MONGODB_URI: mongodb://localhost:27017/ghostguild-test
|
||||||
JWT_SECRET: ci-test-jwt-secret
|
JWT_SECRET: ci-test-jwt-secret
|
||||||
|
RESEND_API_KEY: re_ci_dummy_not_used
|
||||||
|
HELCIM_API_TOKEN: helcim_ci_dummy_not_used
|
||||||
NUXT_PUBLIC_COMING_SOON: 'false'
|
NUXT_PUBLIC_COMING_SOON: 'false'
|
||||||
NODE_ENV: development
|
NODE_ENV: development
|
||||||
ALLOW_DEV_TEST_ENDPOINTS: 'true'
|
ALLOW_DEV_TEST_ENDPOINTS: 'true'
|
||||||
|
|
@ -81,6 +83,8 @@ jobs:
|
||||||
env:
|
env:
|
||||||
MONGODB_URI: mongodb://localhost:27017/ghostguild-test
|
MONGODB_URI: mongodb://localhost:27017/ghostguild-test
|
||||||
JWT_SECRET: ci-test-jwt-secret
|
JWT_SECRET: ci-test-jwt-secret
|
||||||
|
RESEND_API_KEY: re_ci_dummy_not_used
|
||||||
|
HELCIM_API_TOKEN: helcim_ci_dummy_not_used
|
||||||
NUXT_PUBLIC_COMING_SOON: 'false'
|
NUXT_PUBLIC_COMING_SOON: 'false'
|
||||||
NODE_ENV: development
|
NODE_ENV: development
|
||||||
ALLOW_DEV_TEST_ENDPOINTS: 'true'
|
ALLOW_DEV_TEST_ENDPOINTS: 'true'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue