From 9d92e7e4d110a4fc9d3210edb72fecf7f7facd9d Mon Sep 17 00:00:00 2001 From: Jeroen Baten Date: Thu, 16 Jun 2022 19:55:47 +0200 Subject: [PATCH] Update maven.yml with PostgreSQL service Update maven.yml with PostgreSQL service --- .github/workflows/maven.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index ed9cee54f..ef2638c48 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -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