fix: use cargo-deny action in CI, improve quality gate script

- Use EmbarkStudios/cargo-deny-action@v2 instead of cargo install
  for faster CI execution
- Fix quality_gate_strict.sh to check for cargo-deny availability
  instead of suppressing stderr

Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
2026-03-09 23:10:26 -07:00
co-authored by Claude Opus 4.6
parent 2a05dd2d13
commit ed5f110742
2 changed files with 6 additions and 4 deletions
+1 -3
View File
@@ -22,10 +22,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Install cargo-deny
run: cargo install cargo-deny
- name: Run cargo deny
run: cargo deny check
uses: EmbarkStudios/cargo-deny-action@v2
clippy:
name: Clippy (${{ matrix.name }})
+5 -1
View File
@@ -8,7 +8,11 @@ echo "==> clippy (all warnings)"
cargo clippy --locked --all --benches --tests --examples --all-features -- -D warnings
echo "==> cargo deny"
cargo deny check 2>/dev/null || echo "WARN: cargo-deny not installed, skipping"
if command -v cargo-deny &>/dev/null; then
cargo deny check
else
echo "WARN: cargo-deny not installed, skipping (install with: cargo install cargo-deny)"
fi
echo "==> tests"
cargo test --locked