From c708dff65aea7c0db5d9d90fc0697aac9459d202 Mon Sep 17 00:00:00 2001 From: Florian Guggi Date: Sun, 15 Sep 2024 11:30:47 +0200 Subject: [PATCH] Add clippy and formatting checks to CI --- .github/workflows/rust.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 1a18f22..9990bca 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -21,6 +21,17 @@ jobs: - name: Run tests run: cargo test --release --features mock + static-checks: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install + run: sudo apt install libudev-dev + - name: Clippy + run: cargo clippy -- -D warnings + - name: Formatting + run: cargo fmt --all --check + cross-compile: runs-on: ubuntu-latest steps: