Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo-audit: move to a style check #10432

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ jobs:
- uses: baptiste0928/cargo-install@21a18ba3bf4a184d1804e8b759930d3471b1c941
with:
crate: cargo-llvm-cov
- uses: baptiste0928/cargo-install@21a18ba3bf4a184d1804e8b759930d3471b1c941
with:
crate: cargo-audit

# Setup the dependency rust cache and llvm-cov
- uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43
Expand Down Expand Up @@ -295,16 +298,6 @@ jobs:
crate: just
- run: just check-non-default

cargo_audit:
name: "Cargo Audit"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: baptiste0928/cargo-install@21a18ba3bf4a184d1804e8b759930d3471b1c941
with:
crate: cargo-audit
- run: cargo audit -D warnings

upload_coverage:
name: "Upload Coverage"
runs-on: ubuntu-latest
Expand Down
7 changes: 7 additions & 0 deletions test-utils/style/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,10 @@ fn themis() {
cmd.args(&["run", "--locked", "-p", "themis"]);
ensure_success(cmd);
}

#[test]
fn audit() {
let mut cmd = cargo(None);
cmd.args(&["audit", "-D", "warnings"]);
ensure_success(cmd);
}
Loading