Got workflows running for for Ubuntu 18.04, 20.04 and 22.04.
This commit is contained in:
parent
558f5fadaa
commit
039494c1be
3 changed files with 48 additions and 22 deletions
20
.github/workflows/ubuntu-18.04.yml
vendored
20
.github/workflows/ubuntu-18.04.yml
vendored
|
|
@ -1,7 +1,7 @@
|
||||||
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
|
# 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
|
# 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:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
@ -18,12 +18,10 @@ jobs:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:10.0
|
image: postgres:10.0
|
||||||
env:
|
env:
|
||||||
POSTGRES_DB: libreplandev
|
|
||||||
POSTGRES_PASSWORD: libreplan
|
|
||||||
POSTGRES_USER: libreplan
|
POSTGRES_USER: libreplan
|
||||||
|
POSTGRES_PASSWORD: libreplan
|
||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
# Set health checks to wait until postgres has started
|
|
||||||
options: >-
|
options: >-
|
||||||
--health-cmd pg_isready
|
--health-cmd pg_isready
|
||||||
--health-interval 10s
|
--health-interval 10s
|
||||||
|
|
@ -32,13 +30,23 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- 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
|
- name: Set up JDK 8
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '8'
|
java-version: '8'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
cache: maven
|
cache: maven
|
||||||
|
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -Ddefault.passwordsControl=false -Ddefault.exampleUsersDisabled=false clean install
|
run: mvn -Ddefault.passwordsControl=false -Ddefault.exampleUsersDisabled=false clean install
|
||||||
|
|
|
||||||
19
.github/workflows/ubuntu-20.04.yml
vendored
19
.github/workflows/ubuntu-20.04.yml
vendored
|
|
@ -1,7 +1,7 @@
|
||||||
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
|
# 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
|
# 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:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
@ -18,12 +18,10 @@ jobs:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:12.0
|
image: postgres:12.0
|
||||||
env:
|
env:
|
||||||
POSTGRES_DB: libreplandev
|
|
||||||
POSTGRES_PASSWORD: libreplan
|
|
||||||
POSTGRES_USER: libreplan
|
POSTGRES_USER: libreplan
|
||||||
|
POSTGRES_PASSWORD: libreplan
|
||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
# Set health checks to wait until postgres has started
|
|
||||||
options: >-
|
options: >-
|
||||||
--health-cmd pg_isready
|
--health-cmd pg_isready
|
||||||
--health-interval 10s
|
--health-interval 10s
|
||||||
|
|
@ -32,13 +30,26 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- 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
|
- name: Set up Maven for nektos act
|
||||||
uses: stCarolas/setup-maven@v4.4
|
uses: stCarolas/setup-maven@v4.4
|
||||||
|
|
||||||
- name: Set up JDK 8
|
- name: Set up JDK 8
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '8'
|
java-version: '8'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
cache: maven
|
cache: maven
|
||||||
|
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -Ddefault.passwordsControl=false -Ddefault.exampleUsersDisabled=false clean install
|
run: mvn -Ddefault.passwordsControl=false -Ddefault.exampleUsersDisabled=false clean install
|
||||||
|
|
|
||||||
21
.github/workflows/ubuntu-22.04.yml
vendored
21
.github/workflows/ubuntu-22.04.yml
vendored
|
|
@ -1,7 +1,7 @@
|
||||||
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
|
# 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
|
# 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:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
@ -18,27 +18,34 @@ jobs:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:14.0
|
image: postgres:14.0
|
||||||
env:
|
env:
|
||||||
POSTGRES_DB: libreplandev
|
|
||||||
POSTGRES_PASSWORD: libreplan
|
|
||||||
POSTGRES_USER: libreplan
|
POSTGRES_USER: libreplan
|
||||||
|
POSTGRES_PASSWORD: libreplan
|
||||||
ports:
|
ports:
|
||||||
- 5432:5432
|
- 5432:5432
|
||||||
# Set health checks to wait until postgres has started
|
|
||||||
options: >-
|
options: >-
|
||||||
--health-cmd pg_isready
|
--health-cmd pg_isready
|
||||||
--health-interval 10s
|
--health-interval 10s
|
||||||
--health-timeout 5s
|
--health-timeout 5s
|
||||||
--health-retries 5
|
--health-retries 5
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- 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
|
- name: Set up JDK 8
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '8'
|
java-version: '8'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
cache: maven
|
cache: maven
|
||||||
|
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -Ddefault.passwordsControl=false -Ddefault.exampleUsersDisabled=false clean install
|
run: mvn -Ddefault.passwordsControl=false -Ddefault.exampleUsersDisabled=false clean install
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue