From 13a58ec58fa993060d237e97db0fb4e566267e2a Mon Sep 17 00:00:00 2001 From: Cameron Garnham Date: Thu, 3 Oct 2024 12:48:47 +0200 Subject: [PATCH] ci: use machete to check for unused deps --- .github/workflows/testing.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testing.yaml b/.github/workflows/testing.yaml index 4db0b599..f9c9cd06 100644 --- a/.github/workflows/testing.yaml +++ b/.github/workflows/testing.yaml @@ -32,7 +32,7 @@ jobs: name: Run Formatting-Checks run: cargo fmt --check - check: + check: name: Static Analysis runs-on: ubuntu-latest needs: format @@ -57,6 +57,12 @@ jobs: name: Enable Workflow Cache uses: Swatinem/rust-cache@v2 + - id: tools + name: Install Tools + uses: taiki-e/install-action@v2 + with: + tool: cargo-machete + - id: check name: Run Build Checks run: cargo check --tests --benches --examples --workspace --all-targets --all-features @@ -71,7 +77,13 @@ jobs: RUSTDOCFLAGS: "-D warnings" run: cargo doc --no-deps --bins --examples --workspace --all-features + - id: clean + name: Clean Build Directory + run: cargo clean + - id: deps + name: Check Unused Dependencies + run: cargo machete unit: name: Units @@ -134,7 +146,6 @@ jobs: name: Enable Job Cache uses: Swatinem/rust-cache@v2 - - id: test-sqlite name: Run Integration Tests (SQLite) run: ./contrib/dev-tools/container/e2e/sqlite/run-e2e-tests.sh