Got workflows running for for Ubuntu 18.04, 20.04 and 22.04.

This commit is contained in:
tristan.ramseyer 2022-07-11 15:46:44 +02:00
parent 558f5fadaa
commit 039494c1be
3 changed files with 48 additions and 22 deletions

View file

@ -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

View file

@ -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

View file

@ -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