Skip to content

Add CI workflow (fmt + clippy + test)#2

Merged
nicoring merged 2 commits intomainfrom
ci
Feb 20, 2026
Merged

Add CI workflow (fmt + clippy + test)#2
nicoring merged 2 commits intomainfrom
ci

Conversation

@nicoring
Copy link
Owner

Summary

  • Adds .github/workflows/ci.yml — runs on every push to main and on all PRs
  • Fixes all pre-existing rustfmt violations so CI is green from the first run

Checks

  • cargo fmt --check — enforces consistent formatting
  • cargo clippy -- -D warnings — lints treated as errors
  • cargo test — full test suite

Uses dtolnay/rust-toolchain@stable (stable toolchain with rustfmt + clippy components) and Swatinem/rust-cache@v2 for fast subsequent runs.

Test plan

  • Verify the Actions run passes on this PR
  • Verify a PR with a formatting violation fails the fmt step
  • Verify a PR with a clippy warning fails the clippy step

🤖 Generated with Claude Code

nicoring and others added 2 commits February 20, 2026 11:49
- Add .github/workflows/ci.yml: runs cargo fmt --check, cargo clippy
  -D warnings, and cargo test on every push to main and on PRs
- Run cargo fmt to fix all formatting violations so CI passes from
  the first run

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@nicoring nicoring merged commit 2019561 into main Feb 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant