Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6473e0d

Browse files
committed
add volumes in postgres service to allow uds
1 parent ec86a35 commit 6473e0d

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

‎.github/workflows/benchmark.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
ports:
1414
- 5432:5432
1515
volumes:
16-
-
16+
-tests/sock:/var/run/postgresql
1717
# needed because the postgres container does not provide a healthcheck
1818
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
1919
steps:
@@ -36,4 +36,5 @@ jobs:
3636
command: test
3737
args: --release --test benchmark -- --nocapture
3838
env:
39-
TEST_URL: "postgresql://localhost/postgres?user=postgres&password=postgres"
39+
TCP_URL: "postgresql:///postgres?host=localhost&user=postgres&password=postgres"
40+
UDS_URL: "postgresql:///postgres?host=tests/sock&user=postgres&password=postgres"

‎.github/workflows/code-coverage.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
POSTGRES_DB: postgres
2929
ports:
3030
- 5432:5432
31+
volumes:
32+
- tests/sock:/var/run/postgresql
3133
# needed because the postgres container does not provide a healthcheck
3234
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
3335
steps:
@@ -50,7 +52,8 @@ jobs:
5052
version: '0.11.0'
5153
args: --out Xml --all --all-features
5254
env:
53-
TEST_URL: "postgresql://localhost/postgres?user=postgres&password=postgres"
55+
TCP_URL: "postgresql:///postgres?host=localhost&user=postgres&password=postgres"
56+
UDS_URL: "postgresql:///postgres?host=tests/sock&user=postgres&password=postgres"
5457
- name: Upload to codecov.io
5558
uses: codecov/codecov-action@v1.0.2
5659
with:

‎.github/workflows/stable-test.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
POSTGRES_DB: postgres
3737
ports:
3838
- 5432:5432
39+
volumes:
40+
- tests/sock:/var/run/postgresql
3941
# needed because the postgres container does not provide a healthcheck
4042
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
4143
steps:
@@ -59,4 +61,5 @@ jobs:
5961
command: test
6062
args: --all --all-features --no-fail-fast -- --nocapture
6163
env:
62-
TEST_URL: "postgresql://localhost/postgres?user=postgres&password=postgres"
64+
TCP_URL: "postgresql:///postgres?host=localhost&user=postgres&password=postgres"
65+
UDS_URL: "postgresql:///postgres?host=tests/sock&user=postgres&password=postgres"

‎tests/sock/.gitkeep‎

Whitespace-only changes.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /