From bb63c929e1c8e537d0ed2dd0101e575294b61a7e Mon Sep 17 00:00:00 2001 From: Denis Smirnov Date: Sat, 29 Nov 2025 14:21:55 +0700 Subject: [PATCH] test: fix ci problems with postgres symbols --- .github/workflows/ci.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 984a094..6d58f53 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -88,10 +88,20 @@ jobs: - name: Install cargo-llvm-cov for coverage report run: cargo install --locked cargo-llvm-cov@0.6.12 + - name: Clippy pg_fusion (lib only, after pgrx) + run: | + # Lint the extension crate now that Postgres symbols and pgrx config are available. + # Limit to lib target to avoid linking test harness against PG server symbols. + cargo clippy -p pg_fusion --lib --features "pg${{ env.PG_MAJOR }}, pg_test" --no-default-features + - name: Format and lint run: | cargo fmt --all -- --check - cargo clippy --all-targets --features "pg${{ env.PG_MAJOR }}, pg_test" --no-default-features + # Run clippy for non-extension crates to avoid linking against PG outside pgrx + cargo clippy --workspace \ + --exclude pg_fusion \ + --exclude pg_test \ + --all-targets --no-default-features - name: Set up permissions for PostgreSQL