diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b398bdffdc..8fbfab11e8 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -30,10 +30,14 @@ jobs: run: cargo fmt --verbose --all -- --check - name: Clippy check run: cargo clippy --verbose --all-targets + - name: Clippy check with all features + run: cargo clippy --verbose --all-targets --all-features - name: Cargo check without features run: cargo check --all-targets --manifest-path "scylla/Cargo.toml" --features "" - name: Cargo check with all serialization features run: cargo check --all-targets --manifest-path "scylla/Cargo.toml" --features "full-serialization" + - name: Cargo check with all features + run: cargo check --all-targets --manifest-path "scylla/Cargo.toml" --all-features - name: Cargo check with secret feature run: cargo check --all-targets --manifest-path "scylla/Cargo.toml" --features "secret" - name: Cargo check with chrono feature diff --git a/Makefile b/Makefile index 5051d660af..9115122099 100644 --- a/Makefile +++ b/Makefile @@ -4,10 +4,10 @@ COMPOSE := docker compose -f test/cluster/docker-compose.yml all: test .PHONY: ci -ci: fmt-check check check-without-features clippy test build +ci: fmt-check check check-without-features check-all-features clippy clippy-all-features test build .PHONY: dockerized-ci -dockerized-ci: fmt-check check check-without-features clippy dockerized-test build +dockerized-ci: fmt-check check check-without-features check-all-features clippy clippy-all-features dockerized-test build .PHONY: fmt fmt: @@ -25,10 +25,18 @@ check: check-without-features: cargo check --manifest-path "scylla/Cargo.toml" --features "" --all-targets +.PHONY: check-all-features +check-all-features: + cargo check --all-targets --all-features + .PHONY: clippy clippy: RUSTFLAGS=-Dwarnings cargo clippy --all-targets +.PHONY: clippy-all-features +clippy-all-features: + RUSTFLAGS=-Dwarnings cargo clippy --all-targets --all-features + .PHONY: test test: up SCYLLA_URI=172.42.0.2:9042 \