Skip to content

Commit

Permalink
feat: unused deps workflow (#123)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
Evalir and zvolin authored Nov 13, 2023
1 parent 9c1c917 commit ee630f2
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]

- name: Check for unused dependencies
run: cargo +nightly udeps --all-features --all-targets
env:
RUSTFLAGS: -D warnings

0 comments on commit ee630f2

Please sign in to comment.