From 03dab6a574f982527a3ac9120892091657ada055 Mon Sep 17 00:00:00 2001 From: larsk21 <57503246+larsk21@users.noreply.github.com> Date: Fri, 29 Nov 2024 14:36:47 +0100 Subject: [PATCH] enable SonarQube analysis and JavaDoc build in CI --- .github/workflows/ci.yml | 13 ++++++++++++- pom.xml | 6 +++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 207bca0a..16bb2463 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,12 +34,23 @@ jobs: cache: 'maven' - name: Verify build + if: matrix.os != 'ubuntu-latest' run: > ./mvnw clean verify --batch-mode --update-snapshots --no-transfer-progress + - name: Verify build with Sonar + if: matrix.os == 'ubuntu-latest' + run: > + ./mvnw clean verify javadoc:javadoc-no-fork sonar:sonar -P coverage + --batch-mode + --update-snapshots + --no-transfer-progress + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + - name: Stage build results run: mkdir staging-${{ matrix.os }} && cp **/target/*.jar staging-${{ matrix.os }}/ @@ -48,7 +59,7 @@ jobs: with: name: Build Results path: staging-*/ - + deploy-snapshot: name: Deploy snapshot runs-on: ubuntu-latest diff --git a/pom.xml b/pom.xml index d831c46b..4827dbb5 100644 --- a/pom.xml +++ b/pom.xml @@ -44,12 +44,16 @@ testutils - + 3.3 2.2.0 1.9.0 1.6.0 + + https://sonarcloud.io + vitruv-tools + vitruv-tools_Vitruv-DSLs