mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-10-04 02:33:47 +10:00
ci: run the database-backed suites and drop coverage from the unit step
The cover-letter and MCP OAuth flow suites were gated on environment variables CI never set, so they never ran. Point them at the job's PostgreSQL. The cover-letter suite works in its own schema; the OAuth suite gets a database of its own because it writes signing keys under its own secret, which the e2e server can't decrypt. Nothing reads the unit step's coverage report, so test:ci no longer collects it.
This commit is contained in:
@@ -19,6 +19,10 @@ env:
|
||||
LOCAL_STORAGE_PATH: /tmp/reactive-resume-e2e-storage
|
||||
# The assistant spec talks to a scripted provider on 127.0.0.1.
|
||||
FLAG_ALLOW_UNSAFE_AI_BASE_URL: "true"
|
||||
# Real-database unit suites. The cover-letter suite works in its own schema; the OAuth flow suite writes
|
||||
# signing keys under its own secret, so it gets a database the e2e server never reads.
|
||||
COVER_LETTER_TEST_DATABASE_URL: postgresql://postgres:postgres@localhost:5432/postgres
|
||||
OAUTH_TEST_DATABASE_URL: postgresql://postgres:postgres@localhost:5432/oauth_test
|
||||
|
||||
jobs:
|
||||
e2e:
|
||||
@@ -80,6 +84,11 @@ jobs:
|
||||
- name: Run Database Migrations
|
||||
run: pnpm db:migrate
|
||||
|
||||
- name: Prepare OAuth Test Database
|
||||
run: |
|
||||
psql "$DATABASE_URL" -c "CREATE DATABASE oauth_test"
|
||||
DATABASE_URL="$OAUTH_TEST_DATABASE_URL" pnpm db:migrate
|
||||
|
||||
# Runs every workspace package, not a hand-maintained filter list, so a package
|
||||
# cannot silently lose coverage by being left out. Serial execution: the PDF
|
||||
# rasterization and API rate-limit suites time out when several packages' Vitest
|
||||
|
||||
Reference in New Issue
Block a user