feat(ci): add PostgreSQL service to workflow configuration

This commit is contained in:
Jan Gleytenhoover 2024-09-25 09:48:53 +02:00
parent 41d5f5c9b8
commit 0691e708e8
Signed by: jank
GPG Key ID: B267751B8AE29EFE

@ -9,6 +9,20 @@ jobs:
runs-on: "ubuntu-latest"
container:
image: "cimg/openjdk:21.0-node"
services:
postgres:
image: postgres:15
env:
POSTGRES_DB: lf8_starter_db
POSTGRES_USER: lf8_starter
POSTGRES_PASSWORD: secret
ports:
- 5432:5432
options: >-
--health-cmd="pg_isready -U lf8_starter"
--health-interval=10s
--health-timeout=5s
--health-retries=3
steps:
- name: "Checkout"
uses: actions/checkout@v3