From b4f4bfbaaefd0f0e7655b0d9ad1d5855fc51fd71 Mon Sep 17 00:00:00 2001 From: ccamel Date: Mon, 16 Dec 2024 20:29:40 +0100 Subject: [PATCH] ci(workflow): add lint for unused cargo dependencies --- .github/workflows/lint.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index cefda664..63d9494e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -73,11 +73,16 @@ jobs: if: steps.changed-rust-cargo.outputs.any_changed == 'true' uses: davidB/rust-cargo-make@v1 - - name: Lint all Cargo.toml file + - name: Lint all Cargo.toml files if: steps.changed-rust-cargo.outputs.any_changed == 'true' run: | cargo make lint-cargo-toml + - name: Lint all unused dependencies in Cargo.toml files + if: steps.changed-rust-cargo.outputs.any_changed == 'true' + run: | + cargo make lint-cargo-deps + lint-cargo-makefile: runs-on: ubuntu-22.04 steps: