Skip to content

chore: type-check the site with astro check in CI - #12

Merged
nicodes merged 1 commit into
mainfrom
chore/astro-check
Sep 21, 2026
Merged

nicodes merged 1 commit into
mainfrom
chore/astro-check

Conversation

@nicodes

@nicodes nicodes commented Sep 21, 2026 •

Copy link
Copy Markdown
Member

What changed

Mirrors tonesplit-web's shape: the site is type-checked in CI before it is built.

  • package.json: new devDependencies @astrojs/check ^0.9.10, typescript 6, @types/primer__octicons ^19.21.0 (the octicons package ships no types; it is imported in all three pages and both components), and a typecheck script (astro check).
  • .github/actions/build: a new Type check step between Install and Build. astro check runs its own astro sync, so it needs nothing from ./dist, and a type error is the likeliest and cheapest failure to reach. typescript is pinned to 6: TypeScript 7's native compiler does not expose the programmatic API @astrojs/check needs. The action's description now states the step order.
  • bun.lock regenerated accordingly.

Local gates (bun 1.3.10)

  • bun run typecheck: 7 files, 0 errors, 0 warnings, 0 hints — no genuine type errors in the site.
  • bun run build: 3 pages built.
  • CI assertions replicated locally: index/devtools/games pages non-empty; no *.js in dist.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@vercel

vercel Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
aviorstudio-web Ready Ready Preview Sep 21, 2026 10:07pm UTC

@nicodes
nicodes merged commit 4a1a282 into main Sep 21, 2026
6 checks passed
@nicodes
nicodes deleted the chore/astro-check branch September 21, 2026 22:08

This branch was successfully deployed

1 active deployment
Preview — ca37b89d Deployed Sep 21, 2026 by vercel[bot]
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