mirror of
https://github.com/rust-vmm/rust-vmm-ci.git
synced 2026-08-05 03:08:31 +00:00
Add --workspace flag to cargo check too
Without this flag, it looks like not all workspace files are checked. You can test this by adding for example an unused import (`use std::clone;`) in https://github.com/rust-vmm/vmm-reference/pull/11, file src/vmm/tests/integration_tests.rs. cargo check will fail only if we pass `--workspace` flag too. For clippy, this flag doesn't seem to have an obvious effect, this should be further investigated in #21. Signed-off-by: Laura Loghin <lauralg@amazon.com>
This commit is contained in:
committed by
Alexandra Iordache
parent
3ea5f2b1f1
commit
bedc32bb14
@@ -136,7 +136,7 @@ steps:
|
||||
|
||||
- label: "check-warnings-x86"
|
||||
commands:
|
||||
- RUSTFLAGS="-D warnings" cargo check --all-targets --all-features
|
||||
- RUSTFLAGS="-D warnings" cargo check --all-targets --all-features --workspace
|
||||
retry:
|
||||
automatic: false
|
||||
agents:
|
||||
@@ -150,7 +150,7 @@ steps:
|
||||
|
||||
- label: "check-warnings-arm"
|
||||
command:
|
||||
- RUSTFLAGS="-D warnings" cargo check --all-targets --all-features
|
||||
- RUSTFLAGS="-D warnings" cargo check --all-targets --all-features --workspace
|
||||
retry:
|
||||
automatic: false
|
||||
agents:
|
||||
|
||||
Reference in New Issue
Block a user