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 26, 2023
1 parent d1e9a16 commit 987874b
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 @@ -134,6 +134,7 @@ jobs:
- name: Install tools
run: |
cargo install cargo-supply-chain || true
cargo install cargo-unmaintained || true
- name: Test
run: |
Expand Down
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ libraries = [
{ git = "https://github.com/trailofbits/dylint", pattern = "examples/restriction/suboptimal_pattern" },
{ git = "https://github.com/trailofbits/dylint", pattern = "examples/restriction/try_io_result" },
]

[workspace.metadata.unmaintained]
ignore = ["parse_duration"]
8 changes: 8 additions & 0 deletions test-fuzz/tests/ci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ fn supply_chain() {
}
}

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

#[must_use]
pub fn enabled(key: &str) -> bool {
var(key).map_or(false, |value| value != "0")
Expand Down

0 comments on commit 987874b

Please sign in to comment.