Skip to content

Commit 0c1ecee

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

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/ci.yml

Lines changed: 14 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,8 +113,17 @@ 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
119+
if: false
120+
steps:
121+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
122+
with:
123+
persist-credentials: false
124+
125+
backend-deps:
126+
name: Backend / dependencies
116127
runs-on: ubuntu-24.04
117128
needs: changed-files
118129
if: github.event_name != 'pull_request' || needs.changed-files.outputs.rust-lockfile == 'true'
@@ -127,6 +138,9 @@ jobs:
127138
- run: cargo install cargo-deny --vers ${CARGO_DENY_VERSION}
128139
- run: cargo deny check
129140

141+
- run: cargo install cargo-machete --vers ${CARGO_MACHETE_VERSION}
142+
- run: cargo machete
143+
130144
backend-test:
131145
name: Backend / Test
132146
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)