Skip to content

Commit f07c05a

Browse files
DylanMerigaudclaude
andcommitted
Fix CI: skip env validation for the build + dry-run steps
CI has failed on every push for months at the Build step: `next build` runs the app's load-time env validation (@t3-oss/env), which throws "Invalid environment variables" because CI has no ANTHROPIC_API_KEY / DATABASE_URL secrets. The app validates env at RUNTIME on Vercel, so the build (and the offline dry-run sanity/evals) only need to skip the load-time check. Set SKIP_ENV_VALIDATION at the job level. Verified locally with no secrets: build, sanity --dry-run, eval --dry-run (100%), eval:edit --dry-run (10/10) all pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 40a3df7 commit f07c05a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ jobs:
1010
check:
1111
name: format · typecheck · lint · knip · test · build · eval
1212
runs-on: ubuntu-latest
13+
# No real secrets in CI: the app validates env at runtime (on Vercel), so the build
14+
# and the dry-run sanity/eval only need to skip the load-time env validation. Without
15+
# this, `next build` throws "Invalid environment variables" and the job fails.
16+
env:
17+
SKIP_ENV_VALIDATION: "1"
1318
steps:
1419
- uses: actions/checkout@v4
1520

0 commit comments

Comments
 (0)