Skip to content

Commit 559d5b6

Browse files
build: add CI workflow with production build step
Add .github/workflows/ci.yml that runs on every push and PR: - Type check (pnpm astro check) - Format check (pnpm run format:check) - Agent markdown audit (--strict) - Production build (pnpm run build) This catches build regressions before merge. Closes #644
1 parent 0f8a1f5 commit 559d5b6

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ['**']
6+
pull_request:
7+
8+
jobs:
9+
check:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- uses: pnpm/action-setup@v4
15+
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
cache: 'pnpm'
20+
21+
- name: Install dependencies
22+
run: pnpm install --frozen-lockfile
23+
24+
- name: Type check
25+
run: pnpm astro check
26+
27+
- name: Format check
28+
run: pnpm run format:check
29+
30+
- name: Agent markdown audit
31+
run: node scripts/agent-markdown-audit.js --strict
32+
33+
- name: Production build
34+
run: pnpm run build

0 commit comments

Comments
 (0)