Skip to content

Commit f9c80fe

Browse files
committed
test: fix ci problems with postgres symbols
1 parent 1201af2 commit f9c80fe

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,20 @@ jobs:
8888
- name: Install cargo-llvm-cov for coverage report
8989
run: cargo install --locked [email protected]
9090

91+
- name: Clippy pg_fusion (lib only, after pgrx)
92+
run: |
93+
# Lint the extension crate now that Postgres symbols and pgrx config are available.
94+
# Limit to lib target to avoid linking test harness against PG server symbols.
95+
cargo clippy -p pg_fusion --lib --features "pg${{ env.PG_MAJOR }}, pg_test" --no-default-features
96+
9197
- name: Format and lint
9298
run: |
9399
cargo fmt --all -- --check
94-
cargo clippy --all-targets --features "pg${{ env.PG_MAJOR }}, pg_test" --no-default-features
100+
# Run clippy for non-extension crates to avoid linking against PG outside pgrx
101+
cargo clippy --workspace \
102+
--exclude pg_fusion \
103+
--exclude pg_test \
104+
--all-targets --features "pg${{ env.PG_MAJOR }}, pg_test" --no-default-features
95105
96106
97107
- name: Set up permissions for PostgreSQL

0 commit comments

Comments
 (0)