Skip to content

Commit f8234e5

Browse files
committed
ci: Add postgres env vars
1 parent 0a57f52 commit f8234e5

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/gradle.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,21 @@ jobs:
2323
services:
2424
postgres:
2525
image: postgres
26+
env:
27+
POSTGRES_USER: postgres_extensions
28+
POSTGRES_PASSWORD: postgres_extensions
2629
ports:
2730
- 5432:5432
31+
options: >-
32+
--health-cmd pg_isready
33+
--health-interval 10s
34+
--health-timeout 5s
35+
--health-retries 5
2836
steps:
2937
- name: "📥 Checkout repository"
30-
uses: actions/checkout@v4
38+
uses: actions/checkout@v5
3139
- name: "☕️ Setup JDK"
32-
uses: actions/setup-java@v4
40+
uses: actions/setup-java@v5
3341
with:
3442
java-version: 17
3543
distribution: liberica

0 commit comments

Comments
 (0)