fix(ci OPS50): vitest/playwright recarregam .env.test por cima do env do job — gravar DATABASE_URL do serviço em .env.test.local (camada que vence)
Some checks failed
Agent PR Ready + auto-merge / ready-automerge (pull_request) Has been skipped
CI (PR) / scope (pull_request) Successful in 30s
CI (PR) / format (pull_request) Successful in 54s
CI (PR) / docs-guards (pull_request) Successful in 6s
CI (PR) / plans-only-closes (pull_request) Successful in 6s
CI (PR) / lint (pull_request) Successful in 38s
CI (PR) / typecheck (pull_request) Successful in 30s
CI (PR) / knip (pull_request) Successful in 32s
CI (PR) / cycles (pull_request) Successful in 31s
CI (PR) / unit (pull_request) Successful in 43s
CI (PR) / build (pull_request) Has been skipped
CI (PR) / int (pull_request) Failing after 1m25s
CI (PR) / e2e (pull_request) Failing after 2m54s
CI (PR) / checks (pull_request) Failing after 1s
Some checks failed
Agent PR Ready + auto-merge / ready-automerge (pull_request) Has been skipped
CI (PR) / scope (pull_request) Successful in 30s
CI (PR) / format (pull_request) Successful in 54s
CI (PR) / docs-guards (pull_request) Successful in 6s
CI (PR) / plans-only-closes (pull_request) Successful in 6s
CI (PR) / lint (pull_request) Successful in 38s
CI (PR) / typecheck (pull_request) Successful in 30s
CI (PR) / knip (pull_request) Successful in 32s
CI (PR) / cycles (pull_request) Successful in 31s
CI (PR) / unit (pull_request) Successful in 43s
CI (PR) / build (pull_request) Has been skipped
CI (PR) / int (pull_request) Failing after 1m25s
CI (PR) / e2e (pull_request) Failing after 2m54s
CI (PR) / checks (pull_request) Failing after 1s
This commit is contained in:
parent
02f68894c3
commit
6b9c04820b
1 changed files with 8 additions and 0 deletions
|
|
@ -208,6 +208,10 @@ jobs:
|
|||
set -euo pipefail
|
||||
DB_HOST=$(awk '$2 == "00000000" {a=$3; print strtonum("0x" substr(a,7,2)) "." strtonum("0x" substr(a,5,2)) "." strtonum("0x" substr(a,3,2)) "." strtonum("0x" substr(a,1,2)); exit}' /proc/net/route)
|
||||
echo "DATABASE_URL=postgresql://teqo:teqo@${DB_HOST}:5433/teqo_test" >> "$GITHUB_ENV"
|
||||
# vitest/playwright re-load .env.test over the process env, so the
|
||||
# service URL must win through the .env.test.local layer (same
|
||||
# mechanism `pnpm worktree next` uses). OPS50.
|
||||
echo "DATABASE_URL=postgresql://teqo:teqo@${DB_HOST}:5433/teqo_test" > .env.test.local
|
||||
- run: pnpm migrate
|
||||
- run: pnpm db:seed:minimal
|
||||
|
||||
|
|
@ -325,6 +329,10 @@ jobs:
|
|||
DB_HOST=$(awk '$2 == "00000000" {a=$3; print strtonum("0x" substr(a,7,2)) "." strtonum("0x" substr(a,5,2)) "." strtonum("0x" substr(a,3,2)) "." strtonum("0x" substr(a,1,2)); exit}' /proc/net/route)
|
||||
DB_PORT=${{ matrix.shard == 1 && '5435' || '5436' }}
|
||||
echo "DATABASE_URL=postgresql://teqo:teqo@${DB_HOST}:${DB_PORT}/teqo_test" >> "$GITHUB_ENV"
|
||||
# vitest/playwright re-load .env.test over the process env, so the
|
||||
# service URL must win through the .env.test.local layer (same
|
||||
# mechanism `pnpm worktree next` uses). OPS50.
|
||||
echo "DATABASE_URL=postgresql://teqo:teqo@${DB_HOST}:${DB_PORT}/teqo_test" > .env.test.local
|
||||
- run: pnpm migrate
|
||||
- run: pnpm db:seed:minimal
|
||||
- name: Build for e2e
|
||||
|
|
|
|||
Loading…
Reference in a new issue