Added workflows for Ubuntu 18.04, 20.04 and 22.04.
This commit is contained in:
parent
2b4f2a009d
commit
558f5fadaa
3 changed files with 15 additions and 73 deletions
|
|
@ -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 Java 8 CI with Maven, PostgreSQL and skipTests option
|
name: Ubuntu 18.04 with Java 8
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
@ -12,11 +12,11 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-18.04
|
||||||
|
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:13.0
|
image: postgres:10.0
|
||||||
env:
|
env:
|
||||||
POSTGRES_DB: libreplandev
|
POSTGRES_DB: libreplandev
|
||||||
POSTGRES_PASSWORD: libreplan
|
POSTGRES_PASSWORD: libreplan
|
||||||
|
|
@ -32,26 +32,8 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set up Maven for nektos act
|
||||||
# - name: Start PostgreSQL on Ubuntu
|
uses: stCarolas/setup-maven@v4.4
|
||||||
# run: |
|
|
||||||
# sudo systemctl start postgresql.service
|
|
||||||
# pg_isready
|
|
||||||
|
|
||||||
# - name: Set scram password encryption
|
|
||||||
# run: |
|
|
||||||
# sudo -u postgres psql --command="ALTER SYSTEM SET password_encryption = 'scram-sha-256';"
|
|
||||||
|
|
||||||
# - name: Create libreplan user
|
|
||||||
# run: |
|
|
||||||
# sudo -u postgres psql --command="CREATE USER libreplan PASSWORD 'libreplan'; "
|
|
||||||
##" --command="\du"
|
|
||||||
|
|
||||||
# - name: Create libreplandev database
|
|
||||||
# run: |
|
|
||||||
# sudo -u postgres createdb --owner=libreplan libreplandev
|
|
||||||
# PGPASSWORD=libreplan psql --username=libreplan --host=localhost --list libreplandev
|
|
||||||
|
|
||||||
- name: Set up JDK 8
|
- name: Set up JDK 8
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
|
|
@ -59,5 +41,4 @@ jobs:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
cache: maven
|
cache: maven
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -DskipTests -Ddefault.passwordsControl=false -Ddefault.exampleUsersDisabled=false clean install
|
run: mvn -Ddefault.passwordsControl=false -Ddefault.exampleUsersDisabled=false clean install
|
||||||
|
|
||||||
|
|
@ -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 Java 8 CI with Maven, PostgreSQL 13 and Tests option
|
name: Ubuntu 20.04 with Java 8
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
@ -16,9 +16,9 @@ jobs:
|
||||||
|
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:13.0
|
image: postgres:12.0
|
||||||
env:
|
env:
|
||||||
POSTGRES_DB: libreplandev , libreplantest
|
POSTGRES_DB: libreplandev
|
||||||
POSTGRES_PASSWORD: libreplan
|
POSTGRES_PASSWORD: libreplan
|
||||||
POSTGRES_USER: libreplan
|
POSTGRES_USER: libreplan
|
||||||
ports:
|
ports:
|
||||||
|
|
@ -32,26 +32,8 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set up Maven for nektos act
|
||||||
# - name: Start PostgreSQL on Ubuntu
|
uses: stCarolas/setup-maven@v4.4
|
||||||
# run: |
|
|
||||||
# sudo systemctl start postgresql.service
|
|
||||||
# pg_isready
|
|
||||||
|
|
||||||
# - name: Set scram password encryption
|
|
||||||
# run: |
|
|
||||||
# sudo -u postgres psql --command="ALTER SYSTEM SET password_encryption = 'scram-sha-256';"
|
|
||||||
|
|
||||||
# - name: Create libreplan user
|
|
||||||
# run: |
|
|
||||||
# sudo -u postgres psql --command="CREATE USER libreplan PASSWORD 'libreplan'; "
|
|
||||||
##" --command="\du"
|
|
||||||
|
|
||||||
# - name: Create libreplandev database
|
|
||||||
# run: |
|
|
||||||
# sudo -u postgres createdb --owner=libreplan libreplandev
|
|
||||||
# PGPASSWORD=libreplan psql --username=libreplan --host=localhost --list libreplandev
|
|
||||||
|
|
||||||
- name: Set up JDK 8
|
- name: Set up JDK 8
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
|
|
@ -60,4 +42,3 @@ jobs:
|
||||||
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
|
||||||
|
|
||||||
|
|
@ -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 Java 8 CI with Maven, PostgreSQL 14 and skipTests option
|
name: Ubuntu 22.04 with Java 8
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
@ -32,26 +32,8 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set up Maven for nektos act
|
||||||
# - name: Start PostgreSQL on Ubuntu
|
uses: stCarolas/setup-maven@v4.4
|
||||||
# run: |
|
|
||||||
# sudo systemctl start postgresql.service
|
|
||||||
# pg_isready
|
|
||||||
|
|
||||||
# - name: Set scram password encryption
|
|
||||||
# run: |
|
|
||||||
# sudo -u postgres psql --command="ALTER SYSTEM SET password_encryption = 'scram-sha-256';"
|
|
||||||
|
|
||||||
# - name: Create libreplan user
|
|
||||||
# run: |
|
|
||||||
# sudo -u postgres psql --command="CREATE USER libreplan PASSWORD 'libreplan'; "
|
|
||||||
##" --command="\du"
|
|
||||||
|
|
||||||
# - name: Create libreplandev database
|
|
||||||
# run: |
|
|
||||||
# sudo -u postgres createdb --owner=libreplan libreplandev
|
|
||||||
# PGPASSWORD=libreplan psql --username=libreplan --host=localhost --list libreplandev
|
|
||||||
|
|
||||||
- name: Set up JDK 8
|
- name: Set up JDK 8
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
|
|
@ -59,6 +41,4 @@ jobs:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
cache: maven
|
cache: maven
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -DskipTests -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