Revision control
Copy as Markdown
Other Tools
name: Machete
on:
workflow_dispatch:
pull_request:
branches: ["main"]
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
machete:
name: Check for unused dependencies
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install Rust
uses: ./.github/actions/rust
with:
tools: cargo-hack, cargo-machete
token: ${{ secrets.GITHUB_TOKEN }}
- name: Check for unused dependencies
run: |
cargo machete --with-metadata
cargo hack --workspace --no-manifest-path machete --with-metadata