-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (40 loc) · 1.08 KB
/
ci.yml
File metadata and controls
54 lines (40 loc) · 1.08 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: CI
on:
pull_request:
branches: [main]
env:
TZ: UTC
BUN_VERSION: "1.3.10"
jobs:
quality:
name: Lint, Typecheck & Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ env.BUN_VERSION }}
- uses: actions/cache@v5
with:
path: |
~/.bun/install/cache
node_modules
packages/*/node_modules
apps/*/node_modules
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
restore-keys: ${{ runner.os }}-bun-
- run: bun install --frozen-lockfile
- name: Lint
run: bun run lint
- name: Format check
run: bun run format:check
- name: Typecheck
run: bun run typecheck
- name: Type-level API tests
run: bun run test:types
- name: Unit tests with coverage
run: bun run test:coverage
- name: Benchmark regression checks
run: bun run benchmark
- name: C++ tests
run: bun run test:cpp