From 782a84d43b979a8ef8ff80bde32b027aba19c5db Mon Sep 17 00:00:00 2001 From: Francesco_Cina Date: Wed, 20 Dec 2023 08:40:04 +0100 Subject: [PATCH] CI clippy --- .github/workflows/build_and_test.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 6098a53..812b3ff 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -27,17 +27,26 @@ jobs: toolchain: stable override: true - - name: Install cargo-llvm-cov - uses: taiki-e/install-action@cargo-llvm-cov + - name: rustfmt + run: | + cargo fmt --all --check - - name: Build and Test + - name: clippy + run: | + cargo clippy --all-features --all-targets -- -D warnings + + - name: Build run: cargo build --verbose - name: Run tests run: cargo test --verbose + - name: Install cargo-llvm-cov + uses: taiki-e/install-action@cargo-llvm-cov + - name: Generate code coverage run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info + - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 with: