-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (29 loc) · 895 Bytes
/
machete.yml
File metadata and controls
34 lines (29 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Machete
on:
workflow_dispatch:
pull_request:
branches: ["main"]
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
permissions:
contents: read
jobs:
machete:
name: Check for unused dependencies
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
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: |
# --with-metadata has false positives, see https://github.com/bnjbvr/cargo-machete/issues/127
cargo machete --with-metadata
cargo hack --workspace --no-manifest-path machete --with-metadata