Update maven.yml with PostgreSQL service
Update maven.yml with PostgreSQL service
This commit is contained in:
parent
3c080b85f1
commit
9d92e7e4d1
1 changed files with 17 additions and 1 deletions
18
.github/workflows/maven.yml
vendored
18
.github/workflows/maven.yml
vendored
|
|
@ -13,7 +13,23 @@ jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up JDK 8
|
- name: Set up JDK 8
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue