File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments