Repository navigation
58 lines (53 loc) · 1.5 KB
/
Copy pathci.yml
File metadata and controls
58 lines (53 loc) · 1.5 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
55
56
57
58
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
# engines.node declares the majors tested here; widen both together.
node-compat:
runs-on: blacksmith-2vcpu-ubuntu-2404-arm
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
node: ["22", "24", "26"]
steps:
- uses: useblacksmith/checkout@v1
- uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node }}
- 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: node --version
- run: bun run build
- run: bun run test