diff --git a/.github/workflows/ubuntu-18.04.yml b/.github/workflows/ubuntu-18.04.yml index bdc8be1a8..3e15b807f 100644 --- a/.github/workflows/ubuntu-18.04.yml +++ b/.github/workflows/ubuntu-18.04.yml @@ -1,7 +1,7 @@ # 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: Ubuntu 18.04 with Java 8 +name: Ubuntu 18.04 (Bionic Beaver) on: push: @@ -13,32 +13,40 @@ jobs: build: runs-on: ubuntu-18.04 - + services: postgres: image: postgres:10.0 env: - POSTGRES_DB: libreplandev - POSTGRES_PASSWORD: libreplan POSTGRES_USER: libreplan + POSTGRES_PASSWORD: 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 Maven for nektos act - uses: stCarolas/setup-maven@v4.4 + + - name: Create libreplandev database + uses: akanieski/setup-postgres-cli@v0.1.2 + with: + commands: PGPASSWORD=libreplan psql -U libreplan -h postgres -p 5432 -c "CREATE DATABASE libreplandev;" + + - name: Create libreplandevtest database + uses: akanieski/setup-postgres-cli@v0.1.2 + with: + commands: PGPASSWORD=libreplan psql -U libreplan -h postgres -p 5432 -c "CREATE DATABASE libreplandevtest;" + - name: Set up JDK 8 uses: actions/setup-java@v3 with: java-version: '8' distribution: 'temurin' cache: maven + - name: Build with Maven run: mvn -Ddefault.passwordsControl=false -Ddefault.exampleUsersDisabled=false clean install diff --git a/.github/workflows/ubuntu-20.04.yml b/.github/workflows/ubuntu-20.04.yml index 8fc5ee9c5..966942736 100644 --- a/.github/workflows/ubuntu-20.04.yml +++ b/.github/workflows/ubuntu-20.04.yml @@ -1,7 +1,7 @@ # 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: Ubuntu 20.04 with Java 8 +name: Ubuntu 20.04 (Focal Fossa) on: push: @@ -13,32 +13,43 @@ jobs: build: runs-on: ubuntu-20.04 - + services: postgres: image: postgres:12.0 env: - POSTGRES_DB: libreplandev - POSTGRES_PASSWORD: libreplan POSTGRES_USER: libreplan + POSTGRES_PASSWORD: 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: Create libreplandev database + uses: akanieski/setup-postgres-cli@v0.1.2 + with: + commands: PGPASSWORD=libreplan psql -U libreplan -h postgres -p 5432 -c "CREATE DATABASE libreplandev;" + + - name: Create libreplandevtest database + uses: akanieski/setup-postgres-cli@v0.1.2 + with: + commands: PGPASSWORD=libreplan psql -U libreplan -h postgres -p 5432 -c "CREATE DATABASE libreplandevtest;" + - name: Set up Maven for nektos act uses: stCarolas/setup-maven@v4.4 + - name: Set up JDK 8 uses: actions/setup-java@v3 with: java-version: '8' distribution: 'temurin' cache: maven + - name: Build with Maven run: mvn -Ddefault.passwordsControl=false -Ddefault.exampleUsersDisabled=false clean install diff --git a/.github/workflows/ubuntu-22.04.yml b/.github/workflows/ubuntu-22.04.yml index ec8cb766d..ed6a99daf 100644 --- a/.github/workflows/ubuntu-22.04.yml +++ b/.github/workflows/ubuntu-22.04.yml @@ -1,7 +1,7 @@ # 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: Ubuntu 22.04 with Java 8 +name: Ubuntu 22.04 (Jammy Jellyfish) on: push: @@ -13,32 +13,39 @@ jobs: build: runs-on: ubuntu-22.04 - + services: postgres: image: postgres:14.0 env: - POSTGRES_DB: libreplandev - POSTGRES_PASSWORD: libreplan POSTGRES_USER: libreplan + POSTGRES_PASSWORD: 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 Maven for nektos act - uses: stCarolas/setup-maven@v4.4 + + - name: Create libreplandev database + uses: akanieski/setup-postgres-cli@v0.1.2 + with: + commands: PGPASSWORD=libreplan psql -U libreplan -h postgres -p 5432 -c "CREATE DATABASE libreplandev;" + + - name: Create libreplandevtest database + uses: akanieski/setup-postgres-cli@v0.1.2 + with: + commands: PGPASSWORD=libreplan psql -U libreplan -h postgres -p 5432 -c "CREATE DATABASE libreplandevtest;" + - name: Set up JDK 8 uses: actions/setup-java@v3 with: java-version: '8' distribution: 'temurin' cache: maven + - name: Build with Maven run: mvn -Ddefault.passwordsControl=false -Ddefault.exampleUsersDisabled=false clean install