cd into the example directory before setting envars and running cargo test
@@ -40,31 +40,35 @@ jobs:
# make sure the examples build too
- name: build arrays example
run: |
+ cd pgx-examples/arrays &&
PGX_PG10_CONFIG=~/cargo-target-dir/postgresql-10/pgx-install/bin/pg_config
PGX_PG11_CONFIG=~/cargo-target-dir/postgresql-11/pgx-install/bin/pg_config
PGX_PG12_CONFIG=~/cargo-target-dir/postgresql-12/pgx-install/bin/pg_config
CARGO_TARGET_DIR=~/cargo-target-dir
- cd pgx-examples/arrays && cargo test --all --features pg${{ matrix.version }} --no-default-features
+ cargo test --all --features pg${{ matrix.version }} --no-default-features
- name: build errors example
run: |
+ cd pgx-examples/errors &&
PGX_PG10_CONFIG=~/cargo-target-dir/postgresql-10/pgx-install/bin/pg_config
PGX_PG11_CONFIG=~/cargo-target-dir/postgresql-11/pgx-install/bin/pg_config
PGX_PG12_CONFIG=~/cargo-target-dir/postgresql-12/pgx-install/bin/pg_config
CARGO_TARGET_DIR=~/cargo-target-dir
- cd pgx-examples/errors && cargo test --all --features pg${{ matrix.version }} --no-default-features
+ cargo test --all --features pg${{ matrix.version }} --no-default-features
- name: build srf example
run: |
+ cd pgx-examples/srf &&
PGX_PG10_CONFIG=~/cargo-target-dir/postgresql-10/pgx-install/bin/pg_config
PGX_PG11_CONFIG=~/cargo-target-dir/postgresql-11/pgx-install/bin/pg_config
PGX_PG12_CONFIG=~/cargo-target-dir/postgresql-12/pgx-install/bin/pg_config
CARGO_TARGET_DIR=~/cargo-target-dir
- cd pgx-examples/srf && cargo test --all --features pg${{ matrix.version }} --no-default-features
+ cargo test --all --features pg${{ matrix.version }} --no-default-features
- name: build strings example
run: |
+ cd pgx-examples/strings &&
PGX_PG10_CONFIG=~/cargo-target-dir/postgresql-10/pgx-install/bin/pg_config
PGX_PG11_CONFIG=~/cargo-target-dir/postgresql-11/pgx-install/bin/pg_config
PGX_PG12_CONFIG=~/cargo-target-dir/postgresql-12/pgx-install/bin/pg_config
CARGO_TARGET_DIR=~/cargo-target-dir
- cd pgx-examples/strings && cargo test --all --features pg${{ matrix.version }} --no-default-features
+ cargo test --all --features pg${{ matrix.version }} --no-default-features
- name: dir listing
run: find ~/ -type f | grep -v ".git"
