-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LIBS-561 - Update to SpringBoot 2.2, Java 11 and MySQL 8 (#12)
* Update to Spring Boot 2.2 * Update to Java 11 * Update to MySQL 8 as default Docker Image * Add GitHub actions * Remove Jenkins and Travis
- Loading branch information
1 parent
358c6ad
commit 62b21ed
Showing
11 changed files
with
220 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: nightly | ||
|
||
on: | ||
schedule: | ||
- cron: 0 0 * * * | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: setup-java | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
|
||
- uses: actions/checkout@v1 | ||
|
||
- name: caching | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-maven- | ||
|
||
- name: compile | ||
run: mvn clean compile test-compile | ||
|
||
- name: unit-tests | ||
run: mvn surefire:test | ||
|
||
- name: integration-tests | ||
run: mvn jacoco:restore-instrumented-classes failsafe:integration-test failsafe:verify | ||
|
||
- name: sonar-analyse | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
export SONAR_ORGANIZATION=$(echo ${GITHUB_REPOSITORY} | cut -d / -f 1) | ||
mvn sonar:sonar \ | ||
-Dsonar.host.url=https://sonarcloud.io/ \ | ||
-Dsonar.login=${{ secrets.SONAR_TOKEN }} \ | ||
-Dsonar.organization=${SONAR_ORGANIZATION} \ | ||
-Dsonar.projectKey=${GITHUB_REPOSITORY//\//_} \ | ||
-Dsonar.java.binaries=./target/classes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
release: | ||
env: | ||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: setup-java | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
|
||
- name: setup-gpg | ||
env: | ||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
run: echo ${GPG_PRIVATE_KEY} | base64 --decode | gpg --batch --import | ||
|
||
- name: setup-maven-settings | ||
uses: s4u/maven-settings-action@v1 | ||
with: | ||
servers: '[{"id": "ossrh", "username": "${OSSRH_USERNAME}", "password": "${OSSRH_PASSWORD}"}, {"id": "github", "username": "x-access-token", "password": "${GITHUB_TOKEN}"}]' | ||
properties: '[{"gpg.executable": "gpg"}, {"gpg.passphrase": "${GPG_PASSPHRASE}"}]' | ||
sonatypeSnapshots: true | ||
|
||
- name: checkout | ||
uses: actions/checkout@v1 | ||
|
||
- name: caching | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-maven- | ||
|
||
- name: sonar-analyse | ||
run: | | ||
export SONAR_ORGANIZATION=$(echo ${GITHUB_REPOSITORY} | cut -d / -f 1) | ||
mvn clean verify sonar:sonar \ | ||
-Dsonar.host.url=https://sonarcloud.io/ \ | ||
-Dsonar.login=${{ secrets.SONAR_TOKEN }} \ | ||
-Dsonar.organization=${SONAR_ORGANIZATION} \ | ||
-Dsonar.projectKey=${GITHUB_REPOSITORY//\//_} \ | ||
-Dsonar.java.binaries=./target/classes | ||
- name: deploy | ||
env: | ||
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
run: mvn deploy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: review | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
- '!master' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: setup-java | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
|
||
- name: checkout | ||
uses: actions/checkout@v1 | ||
|
||
- name: caching | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-maven- | ||
|
||
- name: compile | ||
run: mvn clean compile test-compile | ||
|
||
- name: unit-tests | ||
run: mvn surefire:test | ||
|
||
- name: integration-tests | ||
run: mvn jacoco:restore-instrumented-classes failsafe:integration-test failsafe:verify | ||
|
||
- name: sonar-analyse | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
export SONAR_ORGANIZATION=$(echo ${GITHUB_REPOSITORY} | cut -d / -f 1) | ||
mvn sonar:sonar \ | ||
-Dsonar.host.url=https://sonarcloud.io/ \ | ||
-Dsonar.login=${{ secrets.SONAR_TOKEN }} \ | ||
-Dsonar.organization=${SONAR_ORGANIZATION} \ | ||
-Dsonar.projectKey=${GITHUB_REPOSITORY//\//_} \ | ||
-Dsonar.java.binaries=./target/classes | ||
- name: pom-analyse | ||
run: mvn enforcer:enforce |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.