-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (30 loc) · 804 Bytes
/
Copy pathci.yml
File metadata and controls
34 lines (30 loc) · 804 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:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize, reopened, ready_for_review]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
runs-on: blacksmith-2vcpu-ubuntu-2404-arm
timeout-minutes: 10
steps:
- uses: useblacksmith/checkout@v1
- uses: oven-sh/setup-bun@v2
- uses: actions/cache@v6
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('bun.lock') }}
restore-keys: ${{ runner.os }}-bun-
- run: bun install --frozen-lockfile
- run: bun run lint
- run: bun run build
- run: bun run typecheck
- run: bun run knip
- run: bun run test