Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/sqlx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,22 @@ jobs:
SQLX_OFFLINE_DIR: .sqlx
RUSTFLAGS: -D warnings --cfg postgres="${{ matrix.postgres }}"

# Run tests again with implied linux user
- run: |
SKIP_ARGS=()
for test in $PG_ISOLATED_TESTS; do
SKIP_ARGS+=(--skip "$test")
done
cargo test \
--no-default-features \
--features any,postgres,macros,migrate,_unstable-all-types,runtime-${{ matrix.runtime }},tls-${{ matrix.tls }} \
-- \
"${SKIP_ARGS[@]}"
env:
DATABASE_URL: postgres:///sqlx?password=runner-password
SQLX_OFFLINE_DIR: .sqlx
RUSTFLAGS: -D warnings --cfg postgres="${{ matrix.postgres }}"

# Run the `test-attr` test again to cover cleanup.
- run: >
cargo test
Expand Down
2 changes: 1 addition & 1 deletion sqlx-postgres/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ num-bigint = { version = "0.4.3", optional = true }
smallvec = { version = "1.13.1" }
stringprep = "0.1.2"
tracing = { version = "0.1.37", features = ["log"] }
whoami = { version = "2.0.2", default-features = false }
whoami = { version = "2.0.2", features = ["std"], default-features = false }

dotenvy.workspace = true
thiserror.workspace = true
Expand Down
3 changes: 3 additions & 0 deletions tests/postgres/setup.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
-- Create extra user to be used on runner
CREATE USER runner WITH SUPERUSER PASSWORD 'runner-password';

-- https://www.postgresql.org/docs/current/ltree.html
CREATE EXTENSION IF NOT EXISTS ltree;

Expand Down
Loading