Skip to content

Commit cab1e35

Browse files
committed
Fix CI testing
1 parent ac69b05 commit cab1e35

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ jobs:
6868

6969
# Deny warnings on CI to avoid warnings getting into the codebase.
7070
- run: cargo test --features 'deny-warnings'
71-
- run: cargo test --features 'deny-warnings' -p cargo-test-support
71+
- run: cargo test --features 'deny-warnings' --manifest-path crates/cargo-test-support/Cargo.toml
72+
env:
73+
CARGO_TARGET_DIR: target
7274
- run: cargo test -p cargo-platform
7375
- run: cargo test -p cargo-util
7476
- run: cargo test --manifest-path crates/mdman/Cargo.toml

crates/cargo-test-support/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ tar = { version = "0.4.18", default-features = false }
2323
termcolor = "1.1.2"
2424
toml = "0.5.7"
2525
url = "2.2.2"
26+
27+
[features]
28+
deny-warnings = []

crates/cargo-test-support/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#![allow(clippy::all)]
66
#![warn(clippy::needless_borrow)]
77
#![warn(clippy::redundant_clone)]
8+
#![cfg_attr(feature = "deny-warnings", deny(warnings))]
89

910
use std::env;
1011
use std::ffi::OsStr;

0 commit comments

Comments
 (0)