mirror of https://github.com/ctz/rustls
CI: add fmt and clippy coverage for fuzz workspace.
The `fuzz` subdirectory is set up as a separate workspace from the main workspace that contains `rustls` and `examples`. Because of this running `cargo fmt --all` and other similar tooling doesn't include the `fuzz` directory. This can lead to formatting/clippy drift over time. In this commit the `build.yml` config is extended to also run `clippy` and `fmt` on the `fuzz` subdirectory using `--manifest-path`.
This commit is contained in:
parent
18f42bba16
commit
fb9e181a1a
|
@ -217,6 +217,8 @@ jobs:
|
|||
components: rustfmt
|
||||
- name: Check formatting
|
||||
run: cargo fmt --all -- --check
|
||||
- name: Check formatting (fuzz workspace)
|
||||
run: cargo fmt --all --manifest-path=fuzz/Cargo.toml -- --check
|
||||
|
||||
clippy:
|
||||
name: Clippy
|
||||
|
@ -231,6 +233,7 @@ jobs:
|
|||
with:
|
||||
components: clippy
|
||||
- run: cargo clippy --package rustls --all-features -- --deny warnings
|
||||
- run: cargo clippy --manifest-path=fuzz/Cargo.toml --all-features -- --deny warnings
|
||||
|
||||
clippy-nightly:
|
||||
name: Clippy (Nightly)
|
||||
|
@ -245,3 +248,4 @@ jobs:
|
|||
with:
|
||||
components: clippy
|
||||
- run: cargo clippy --package rustls --all-features
|
||||
- run: cargo clippy --manifest-path=fuzz/Cargo.toml --all-features -- --deny warnings
|
||||
|
|
Loading…
Reference in New Issue