From 170b2c4a0210a6a550ceb0a900609d87da6ecd0d Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Sat, 4 Apr 2026 11:57:05 +0200 Subject: [PATCH] fix: run sonar:sonar in same reactor as verify Running mvn sonar:sonar as a separate invocation skips child modules. Combining verify and sonar:sonar in a single mvn command ensures the reactor processes all modules. Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/sonarqube.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/sonarqube.yml b/.gitea/workflows/sonarqube.yml index 6bce00f4..f92371fa 100644 --- a/.gitea/workflows/sonarqube.yml +++ b/.gitea/workflows/sonarqube.yml @@ -42,9 +42,6 @@ jobs: key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-maven- - - name: Build and Test Java - run: mvn clean verify -DskipITs -U --batch-mode - - name: Install UI dependencies working-directory: ui run: | @@ -57,9 +54,9 @@ jobs: working-directory: ui run: npm run lint -- --format json --output-file eslint-report.json || true - - name: SonarQube Analysis + - name: Build, Test and Analyze run: | - mvn sonar:sonar --batch-mode \ + mvn clean verify sonar:sonar -DskipITs -U --batch-mode \ -Dsonar.host.url=${{ secrets.SONAR_HOST_URL }} \ -Dsonar.token=${{ secrets.SONAR_TOKEN }} \ -Dsonar.projectKey=cameleer3-server \