Skip to content

ci: add production build steps to all CI jobs - #125

Merged
bighadj22 merged 1 commit into
mainfrom
ci/add-build-steps
Sep 14, 2026
Merged

bighadj22 merged 1 commit into
mainfrom
ci/add-build-steps

Conversation

@bighadj22

Copy link
Copy Markdown
Owner

Why

PR #122 (astro 7.3.2 + stale @astrojs/cloudflare) passed CI while both production builds were broken (MISSING_EXPORT: beginContentEntryCollection). CI ran typecheck + tests but never a build, so a broken deploy would only surface at deploy time. This closes that gap.

Changes

  • cod-server: build via wrangler deploy --dry-run --outdir dist (existing build:ci script), using wrangler.toml.example copied to wrangler.toml since the real config is gitignored. Dry-run needs no auth and no real resource IDs.
  • cod-client-astro: astro build with PUBLIC_API_URL=http://localhost:8787 (build-time env var, per AGENTS.md).
  • theme01: astro build + validate:all (the theme's compliance validators were also missing from CI).

Verification

Each new step was run locally in a fresh git worktree (exact CI-equivalent: no gitignored files present):

  • cod-server: cp wrangler.toml.example wrangler.toml && npm run build:ci → exit 0
  • dashboard: PUBLIC_API_URL=http://localhost:8787 npm run build → exit 0
  • theme01: npm run validate:all + npm run build → exit 0

This PR's own CI run exercises the new steps end-to-end.

@bighadj22
bighadj22 merged commit 9bc723d into main Sep 14, 2026
3 checks passed
@bighadj22
bighadj22 deleted the ci/add-build-steps branch September 14, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant