Skip to content

Commit 9031f2a

Browse files
service postgres
Signed-off-by: Karan <karanlokchandani@protonmail.com>
1 parent 48f823b commit 9031f2a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,20 @@ jobs:
191191
# run on a larger runner for more SSD/resource access
192192
runs-on: ubuntu-latest
193193
if: true
194+
services:
195+
postgres:
196+
image: postgres:15
197+
env:
198+
POSTGRES_USER: postgres
199+
POSTGRES_PASSWORD: postgres
200+
POSTGRES_DB: spin_dev
201+
ports:
202+
- 5432:5432
203+
options: >-
204+
--health-cmd pg_isready
205+
--health-interval 10s
206+
--health-timeout 5s
207+
--health-retries 5
194208
steps:
195209
- uses: actions/checkout@v3
196210

0 commit comments

Comments
 (0)