Skip to content

Commit db64ee5

Browse files
committed
ci: add lint, typecheck, codegen drift, docs drift, and test workflow on PR and push to main
1 parent 92c39b4 commit db64ee5

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v6
16+
17+
- uses: actions/setup-node@v6
18+
with:
19+
node-version: '24'
20+
21+
- uses: oven-sh/setup-bun@v2
22+
23+
- run: bun install --frozen-lockfile
24+
25+
- name: Codegen drift check
26+
run: |
27+
bun run generate
28+
git diff --exit-code -- specs/openapi.json src/client.gen.ts src/sdk.gen.ts src/types.gen.ts src/client src/core \
29+
|| { echo 'codegen drift: commit the regenerated files'; exit 1; }
30+
31+
- name: Lint
32+
run: bunx biome ci .
33+
34+
- name: Typecheck
35+
run: bun typecheck
36+
37+
- name: Docs drift check
38+
run: |
39+
bun run docs:sync
40+
git diff --exit-code -- README.md AGENTS.md \
41+
|| { echo 'docs drift: commit the regenerated README.md/AGENTS.md'; exit 1; }
42+
43+
- name: Test
44+
run: bun run test

0 commit comments

Comments
 (0)