Skip to content

Commit

Permalink
Run tests as postgres user
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Apr 3, 2024
1 parent 7ddf372 commit 57735a5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ jobs:
with: { cache-directories: /home/runner/.pgrx }
- name: Install pgrx
run: cargo install cargo-pgrx --version "$(perl -ne 'print $1 if /^pgrx\s+=\s"=?([^"]+)/' Cargo.toml)" --locked
- name: Initiazlie pgrx
- name: Initialize pgrx
run: cargo pgrx init --pg${{ matrix.pg }}="$(which pg_config)"
- name: Run the tests
run: RUST_BACKTRACE=1 cargo test --all --no-default-features --features "pg${{ matrix.pg }} pg_test" -- --nocapture
env:
RUST_BACKTRACE: 1
PGUSER: postgres
run: cargo test --all --no-default-features --features "pg${{ matrix.pg }} pg_test" -- --nocapture

0 comments on commit 57735a5

Please sign in to comment.