Skip to content

Commit 61df5e1

Browse files
committed
ci: add lint and typecheck workflow
Run biome and tsc on every push and PR against main so regressions are caught before merge. Enables the required- status-check rule on branch protection.
1 parent b4fd8c3 commit 61df5e1

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
check:
15+
name: Lint + typecheck
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 15
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
23+
- name: Setup Bun
24+
uses: oven-sh/setup-bun@v2
25+
with:
26+
bun-version: 1.3.5
27+
28+
- name: Cache Turbo
29+
uses: actions/cache@v4
30+
with:
31+
path: .turbo
32+
key: ${{ runner.os }}-turbo-${{ github.sha }}
33+
restore-keys: |
34+
${{ runner.os }}-turbo-
35+
36+
- name: Install dependencies
37+
run: bun install --frozen-lockfile
38+
39+
- name: Lint
40+
run: bun run lint
41+
42+
- name: Typecheck
43+
run: bun run typecheck

0 commit comments

Comments
 (0)