From ee630f2b5303a5d930ea4228c38ecf12b7b5db59 Mon Sep 17 00:00:00 2001 From: evalir Date: Mon, 13 Nov 2023 07:33:50 -0400 Subject: [PATCH] feat: unused deps workflow (#123) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: unused deps workflow * chore: change to dispatch & per pr, main * remove issue creation and move to the ci.yml * move '-D warnings' back to RUSTFLAGS * add protoc setup action --------- Co-authored-by: Maciej ZwoliƄski --- .github/workflows/ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5a650e4f..67fbf458 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -135,3 +135,30 @@ jobs: - name: Run tests run: cargo test + + + unused-deps: + runs-on: ubuntu-latest + name: unused dependencies + steps: + - name: Checkout sources + uses: actions/checkout@v3 + + - name: Install Protoc + uses: arduino/setup-protoc@v2 + with: + version: "23.3" + repo-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Install toolchain + uses: dtolnay/rust-toolchain@nightly + + - name: Install cargo-udeps + uses: taiki-e/cache-cargo-install-action@v1 + with: + tool: cargo-udeps@0.1.43 + + - name: Check for unused dependencies + run: cargo +nightly udeps --all-features --all-targets + env: + RUSTFLAGS: -D warnings