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:
Daniel McCarney 2023-03-20 10:36:13 -04:00 committed by Dirkjan Ochtman
parent 18f42bba16
commit fb9e181a1a
1 changed files with 4 additions and 0 deletions

View File

@ -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