From fa1de320c5d7fb938d9c9ff034d7b437f37c3b94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yves=20Dubois-P=C3=A8lerin?= Date: Thu, 21 Oct 2021 16:13:03 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20l'int=C3=A9gration=20continue=20Gi?= =?UTF-8?q?tHub?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/maven.yml | 38 +++++++++++++++++++++++++++++++++++++ pom.xml | 2 +- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 00000000..f3c0e861 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,38 @@ +# This workflow will build a Java project with Maven +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# Uses a Maven cache to reduce traffic to Maven Central and speed up the build, see: https://github.com/marketplace/actions/maven-cache + +name: CI with Maven + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + schedule: + - cron: '45 3 * * WED' + +jobs: + build-and-sonar: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up JDK 8 + uses: actions/setup-java@v2 + with: + java-version: '8' + distribution: 'adopt' + - name: Restore Maven cache + uses: skjolber/maven-cache-github-action@v1 + with: + step: restore + - name: Build and analyze with Sonar + run: mvn -B -U verify sonar:sonar -Dsonar.projectKey=ch.ge.cti.ct.referentiels:referentiels-ofs -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=etat-de-geneve-github + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + - name: Save Maven cache + uses: skjolber/maven-cache-github-action@v1 + with: + step: save diff --git a/pom.xml b/pom.xml index 87643919..459c8f3d 100644 --- a/pom.xml +++ b/pom.xml @@ -47,7 +47,7 @@ scm:git:${env.GITLAB_URL}/Communs/referentiels-ofs.git scm:git:${env.GITLAB_URL}/Communs/referentiels-ofs.git git:${env.GITLAB_URL}/Communs/referentiels-ofs.git - referentiels-ofs-parent-1.4.2 + head