Skip to content

Commit

Permalink
Run cargo-unmaintained in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Dec 24, 2023
1 parent 08abff7 commit 569ebb7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ jobs:
cargo install cargo-msrv || true
cargo install cargo-supply-chain || true
cargo install cargo-udeps --locked || true
cargo install cargo-unmaintained || true
- name: Free up space on Ubuntu
if: ${{ matrix.environment == 'ubuntu-latest' }}
Expand Down
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,6 @@ libraries = [
{ path = "examples/testing/clippy" },
{ path = "examples/restriction/*" },
]

[workspace.metadata.unmaintained]
ignore = ["im-rc", "serde-value", "sized-chunks"]
8 changes: 8 additions & 0 deletions cargo-dylint/tests/ci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,14 @@ fn supply_chain() {
}
}

#[test]
fn unmaintained() {
Command::new("cargo")
.args(["unmaintained", "--color=never", "--fail-fast"])
.assert()
.success();
}

fn readme_contents(dir: impl AsRef<Path>) -> Result<String> {
#[allow(unknown_lints, env_cargo_path)]
read_to_string(dir.as_ref().join("README.md")).map_err(Into::into)
Expand Down

0 comments on commit 569ebb7

Please sign in to comment.