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
name: Test
on:
push:
branches:
pull_request:
branches:
workflow_dispatch:
jobs:
test:
strategy:
fail-fast: true
matrix:
os:
name: test ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 24
- name: Install Bun
uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
# Keep in sync with rust-toolchain.toml
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.93.1
components: rustfmt, clippy
- name: Cache cargo
uses: Swatinem/rust-cache@v2
- name: Check format
run: cargo fmt --all -- --check
- name: Lint
run: bun run lint
- name: Run tests
run: bun run test