Skip to content

Commit 5421a26

Browse files
committed
Set pghost to localhost in pipeline
1 parent c7cae81 commit 5421a26

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/code-quality.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ env:
1212
RUST_VERSION: "1.73"
1313
SQLX_OFFLINE: true
1414
SQLX_VERSION: 0.7.3
15+
PGHOST: localhost # Overrides the default value in .env
1516

1617
jobs:
1718
# add_review_links:

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ services:
7474
volumes:
7575
- db:/var/lib/postgresql/data
7676
healthcheck:
77-
test: ["CMD", "pg_isready", "-U", "${PGUSER}", "${PGDATABASE}"]
77+
test: ["CMD-SHELL", "pg_isready -U ${PGUSER} -d ${PGDATABASE}"]
7878
interval: 10s
7979
timeout: 5s
8080
retries: 5

0 commit comments

Comments
 (0)