diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 27f97919..b875b1e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,7 +45,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... ==="