Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

ci: add cargo clippy and fmt checks

Louis Beaumont5cf27d2e71d5
diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml
index a539d097a..4fa88d479 100644
--- a/.github/workflows/style.yml
+++ b/.github/workflows/style.yml
@@ -1,11 +1,33 @@
name: Code Quality & Optimization
-on: [push]
+on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
+ lint:
+ name: Clippy & Format
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Install dependencies
+ run: .github/scripts/install_dependencies.sh
+
+ - name: Set up Rust
+ uses: actions-rust-lang/setup-rust-toolchain@v1
+ with:
+ toolchain: stable
+ components: clippy, rustfmt
+ rustflags: ""
+
+ - name: Check formatting
+ run: cargo fmt --all -- --check
+
+ - name: Run Clippy
+ run: cargo clippy --all-targets --all-features -- -D warnings
+
optimize:
name: Dependency & Performance Checks
strategy: