mirror of
https://github.com/trussed-dev/littlefs2.git
synced 2026-06-20 04:16:32 -07:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user