Skip to content

Commit c78e2ad

Browse files
committed
CI: Run cargo machete when dependencies are changed
1 parent 6a9f583 commit c78e2ad

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ env:
1616
CARGO_TERM_COLOR: always
1717
# renovate: datasource=crate depName=cargo-deny versioning=semver
1818
CARGO_DENY_VERSION: 0.16.4
19+
# renovate: datasource=crate depName=cargo-machete versioning=semver
20+
CARGO_MACHETE_VERSION: 0.7.0
1921
# renovate: datasource=crate depName=grcov versioning=semver
2022
GRCOV_VERSION: 0.8.20
2123
# renovate: datasource=npm depName=pnpm
@@ -111,9 +113,19 @@ jobs:
111113
- run: cargo clippy --all-targets --all-features --workspace
112114
- run: cargo doc --no-deps --document-private-items
113115

116+
# to make https://github.com/rust-lang/team/blob/651fb3f9c64c934c9073472765d745a606dd9daf/repos/rust-lang/crates.io.toml#L17 happy until we migrated it…
114117
backend-cargo-deny:
115118
name: Backend / cargo-deny
116119
runs-on: ubuntu-24.04
120+
if: false
121+
steps:
122+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
123+
with:
124+
persist-credentials: false
125+
126+
backend-deps:
127+
name: Backend / dependencies
128+
runs-on: ubuntu-24.04
117129
needs: changed-files
118130
if: github.event_name != 'pull_request' || needs.changed-files.outputs.rust-lockfile == 'true'
119131

@@ -127,6 +139,9 @@ jobs:
127139
- run: cargo install cargo-deny --vers ${CARGO_DENY_VERSION}
128140
- run: cargo deny check
129141

142+
- run: cargo install cargo-machete --vers ${CARGO_MACHETE_VERSION}
143+
- run: cargo machete
144+
130145
backend-test:
131146
name: Backend / Test
132147
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)