diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 868b4b51a..04f05bdb3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -191,3 +191,15 @@ jobs: run: bun test apps/hub/test env: E2E_REQUIRED: "1" + + # Every DB-gated suite under packages/* and apps/hub/src gates on + # DATABASE_URL and describe.skip's without one, so build-test (no + # Postgres) never runs them. Find them by the same signal they + # gate on rather than hardcoding a file list, so a newly added + # suite gets picked up automatically. E2E_REQUIRED=1 turns a + # would-be skip into a hard failure. + - name: Run the database-backed package suites + run: | + bun test $(grep -rl DATABASE_URL --include='*.test.ts' packages apps | grep -v apps/hub/test) + env: + E2E_REQUIRED: "1"