From 14ff49a1d18f9d3c57521db14da4805fab325b88 Mon Sep 17 00:00:00 2001 From: Kornel Date: Thu, 5 Dec 2024 16:52:39 +0000 Subject: [PATCH] More Clippy in CI --- .github/workflows/ci.yml | 9 ++++++++- scripts/test.sh | 1 - 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 078f9a9b..bf11c905 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,14 @@ jobs: - name: Fetch dependencies run: cargo fetch - name: Run clippy - run: cargo clippy --all --all-targets + run: cargo clippy --all --all-targets --target-dir=target + - name: Run clippy on integration tests + run: cargo clippy --all --all-targets --features=integration_test --target-dir=target + - name: Run clippy on C API + run: cargo clippy --all-targets --manifest-path=c-api/Cargo.toml --target-dir=target + - name: Run clippy on JS API + run: cargo clippy --all-targets --manifest-path=js-api/Cargo.toml --target-dir=target + test: name: Test runs-on: ubuntu-latest diff --git a/scripts/test.sh b/scripts/test.sh index 124c2cc2..a1aa624e 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -3,7 +3,6 @@ set -e echo "=== Running library tests... ===" -cargo clippy --features=integration_test --all-targets -- -Dwarnings cargo test --features=integration_test "$@" echo "=== Running C API tests... ==="