From e712baeb3dea3ebf8a46920195eb331b2081db65 Mon Sep 17 00:00:00 2001 From: Elliot Berman Date: Fri, 13 Dec 2024 15:33:32 -0800 Subject: [PATCH] GitHub: Add clippy workflow Add clippy workflow on push and PRs. Signed-off-by: Elliot Berman --- .github/workflows/rust.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/rust.yaml diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml new file mode 100644 index 0000000..1ebb244 --- /dev/null +++ b/.github/workflows/rust.yaml @@ -0,0 +1,16 @@ +on: [push, pull_request] +name: Rust check + +# Make sure CI fails on all warnings, including Clippy lints +env: + RUSTFLAGS: "-Dwarnings" + +jobs: + clippy_check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run Clippy + run: cargo clippy --all-targets --all-features + - name: Run Format + run: cargo fmt --all -- --check