Skip to content

Commit

Permalink
ci: use machete to check for unused deps
Browse files Browse the repository at this point in the history
  • Loading branch information
da2ce7 committed Oct 3, 2024
1 parent 467d549 commit 13a58ec
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
name: Run Formatting-Checks
run: cargo fmt --check

check:
check:
name: Static Analysis
runs-on: ubuntu-latest
needs: format
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 13a58ec

Please sign in to comment.