Skip to content

Commit 3bfc41c

Browse files
Frandoclaude
andcommitted
chore: add GitHub CI workflow and update format instructions
Add a basic Rust CI pipeline (check, nextest, clippy, format-check) and update AGENTS.md to use `cargo make format` instead of `cargo fmt`. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2210e90 commit 3bfc41c

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
ci:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: dtolnay/rust-toolchain@stable
19+
with:
20+
components: clippy, rustfmt
21+
22+
- uses: taiki-e/install-action@cargo-make
23+
- uses: taiki-e/install-action@nextest
24+
25+
- uses: Swatinem/rust-cache@v2
26+
27+
- name: Check
28+
run: cargo check --workspace --tests
29+
30+
- name: Test
31+
run: cargo nextest run --workspace
32+
33+
- name: Clippy
34+
run: cargo clippy --workspace --tests -- -D warnings
35+
36+
- name: Format
37+
run: cargo make format-check

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Run these in order. All must pass with zero warnings and zero errors:
8787
Always add a timeout to test runs (e.g. 90s).
8888

8989
```bash
90-
cargo fmt
90+
cargo make format # NOT cargo fmt; uses project-specific unstable rustfmt options
9191
cargo clippy -p patchbay --tests --fix --allow-dirty
9292
cargo check -p patchbay --tests
9393
cargo nextest run -p patchbay # use nextest, not cargo test; parallelism in .config/nextest.toml

0 commit comments

Comments
 (0)