Update maven.yml with PostgreSQL service

Update maven.yml with PostgreSQL service
This commit is contained in:
Jeroen Baten 2022-06-16 19:55:47 +02:00 committed by GitHub
parent 3c080b85f1
commit 9d92e7e4d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,23 @@ jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
env:
POSTGRES_DB: libreplandev
POSTGRES_PASSWORD: libreplan
POSTGRES_USER: libreplan
ports:
- 5432:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- name: Set up JDK 8