Skip to content

Commit 08442dc

Browse files
committed
ci: add astro check + build smoke as PR gate
Repo had a deploy.yml on push to main but no PR-time CI. With dependabot now opening grouped weekly bumps, every PR needs a real gate. The new ci.yml runs npm ci + astro check (TS + content collections) + npm run build on every PR and push. Catches: - Astro major-version build regressions (the deferred 5->6 PR is the test case). - TS errors introduced by @types/* bumps. - Tailwind config drift on @tailwindcss/vite bumps. - Anything that npm install can resolve but astro build can't.
1 parent e924fc0 commit 08442dc

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI — Lint, Typecheck, Build
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
push:
7+
branches: [main]
8+
9+
jobs:
10+
build-check:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v6
14+
15+
- name: Set up Node 22
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: '22'
19+
cache: 'npm'
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
24+
- name: Astro check (TypeScript + content collections)
25+
run: npx astro check
26+
27+
- name: Build (smoke)
28+
run: npm run build

0 commit comments

Comments
 (0)