Extend CI checks

This patch adds clippy and rustfmt to the CI and fails the workflow if
cargo doc shows a warning.
This commit is contained in:
Robin Krahl
2024-08-08 17:58:25 +02:00
parent e6435d207d
commit f6b90f52b3
3 changed files with 12 additions and 45 deletions
+11 -2
View File
@@ -39,11 +39,20 @@ jobs:
- name: Build
run: cargo build --release --verbose
- name: Run clippy
if: matrix.target == 'x86_64-unknown-linux-gnu'
run: cargo clippy --all-features --all-targets -- --deny warnings
- name: Check code format
if: matrix.target == 'x86_64-unknown-linux-gnu'
run: cargo fmt -- --check
- name: Run tests
if: matrix.target == 'x86_64-unknown-linux-gnu'
run: >
cargo test &&
cargo test --release
- name: Build Documentation
run: cargo doc --no-deps
- name: Check documentation
if: matrix.target == 'x86_64-unknown-linux-gnu'
run: RUSTDOCFLAGS="-D warnings" cargo doc --no-deps