TASKPM/.github/workflows/maven.yml
Jeroen Baten 9d92e7e4d1
Update maven.yml with PostgreSQL service
Update maven.yml with PostgreSQL service
2022-06-16 19:55:47 +02:00

43 lines
1.2 KiB
YAML

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java 8 CI with Maven and skipTests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
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
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -DskipTests -Ddefault.passwordsControl=false -Ddefault.exampleUsersDisabled=false clean install