Skip to content

Commit

Permalink
add check for unused dependencies (bevyengine#2461)
Browse files Browse the repository at this point in the history
# Objective

- Unused dependencies are bad

## Solution

- Add check for unused dependencies with https://github.com/est31/cargo-udeps - bevyengine#2455
  • Loading branch information
mockersf authored and ostwilkens committed Jul 27, 2021
1 parent c898f3c commit f8c8427
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/bors.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ status = [
"run-examples",
"check-doc",
"check-missing-examples-in-docs",
"check-unused-dependencies",
]

use_squash_merge = true
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,22 @@ jobs:
file-types: '[".rs"]'
exclude-folders: '["./examples/ios"]'
exclude-files: '[]'

check-unused-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true

- name: Installs cargo-udeps
run: cargo install cargo-udeps

- name: Install alsa and udev
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev

- name: Run cargo udeps
run: cargo udeps

0 comments on commit f8c8427

Please sign in to comment.