Skip to content

Commit

Permalink
ci: add cargo machete
Browse files Browse the repository at this point in the history
  • Loading branch information
seqre committed Jul 11, 2024
1 parent 7d21082 commit febf35b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,25 @@ jobs:

- name: Run fmt
run: cargo fmt --all -- --check

machete:
if: github.event_name == 'push' || github.event_name == 'schedule' ||
github.event.pull_request.head.repo.full_name != github.repository

name: Machete dependencies checks
runs-on: ubuntu-latest
needs: ["build"]
steps:
- name: Checkout source
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable

- name: Cache Cargo registry
uses: Swatinem/rust-cache@v2

- name: Run cargo-machete
uses: bnjbvr/[email protected]

0 comments on commit febf35b

Please sign in to comment.