-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (26 loc) · 852 Bytes
/
ci.yml
File metadata and controls
34 lines (26 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: CI
on:
pull_request:
types: [opened, synchronized, reopened]
push:
branches: [main]
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.11"
- run: bun install --frozen-lockfile
# Lint first — cheapest check. Biome covers formatting + general
# lint; ESLint catches layering violations via eslint-plugin-boundaries.
- run: bun run lint
# Typecheck before tests: `bun test` strips types and won't catch
# type errors on its own. Running tsc first short-circuits the job
# on type failures instead of wasting the test-run time.
- run: bunx tsc --noEmit
- run: bun test