mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-06 19:45:29 +00:00
run clippy for tests too
This commit is contained in:
parent
e7d6c5e0f5
commit
ca31742394
1
.github/workflows/build-and-test.yml
vendored
1
.github/workflows/build-and-test.yml
vendored
@ -134,6 +134,7 @@ jobs:
|
|||||||
rustup toolchain install stable --profile minimal -c clippy
|
rustup toolchain install stable --profile minimal -c clippy
|
||||||
rustup toolchain install nightly --profile minimal -c rustfmt
|
rustup toolchain install nightly --profile minimal -c rustfmt
|
||||||
cargo +stable clippy -- -D warnings
|
cargo +stable clippy -- -D warnings
|
||||||
|
cargo +stable clippy --tests -- -D warnings
|
||||||
cargo +nightly fmt -- --check
|
cargo +nightly fmt -- --check
|
||||||
|
|
||||||
github-release:
|
github-release:
|
||||||
|
@ -79,7 +79,7 @@ fn create_random_files(dir: impl Into<PathBuf>, depth: u8, rng: &mut SmallRng) {
|
|||||||
|
|
||||||
// create more random files in 0 to 2 new directories
|
// create more random files in 0 to 2 new directories
|
||||||
for _ in 0..rng.gen_range(0..=2u32) {
|
for _ in 0..rng.gen_range(0..=2u32) {
|
||||||
create_random_files(&tempfile::tempdir_in(dir).unwrap().into_path(), depth - 1, rng);
|
create_random_files(tempfile::tempdir_in(dir).unwrap().into_path(), depth - 1, rng);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user