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