From 07c7ee316bbf7fb639740a2558a8c660e51892d7 Mon Sep 17 00:00:00 2001 From: demo-bot Date: Mon, 13 Apr 2026 13:17:25 +0000 Subject: [PATCH] Update .gitea/workflows/sonar-scan.yaml --- .gitea/workflows/sonar-scan.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/sonar-scan.yaml b/.gitea/workflows/sonar-scan.yaml index 8f52e7e..65eda40 100644 --- a/.gitea/workflows/sonar-scan.yaml +++ b/.gitea/workflows/sonar-scan.yaml @@ -69,20 +69,23 @@ jobs: # SONAR_HOST_URL – e.g. http://sonarqube.example.com:9000 # # SONAR_PROJECT_KEY – e.g. spring-petclinic # # ------------------------------------------------------------------ # - - name: Build, test and analyse with SonarQube + - name: Build and test + run: | + ./mvnw -B verify \ + -Dtest='!PostgresIntegrationTests' + + - name: SonarQube analysis env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }} run: | - ./mvnw -B verify sonar:sonar \ + ./mvnw -B sonar:sonar \ -Dsonar.projectKey=${{ vars.SONAR_PROJECT_KEY }} \ -Dsonar.projectName="Spring PetClinic" \ -Dsonar.host.url="${SONAR_HOST_URL}" \ -Dsonar.token="${SONAR_TOKEN}" \ -Dsonar.java.source=17 \ - -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml \ - -Dtest='!PostgresIntegrationTests,!MySqlIntegrationTests' - + -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml # ------------------------------------------------------------------ # # 5. Quality Gate — poll until the result is ready, fail if red # # ------------------------------------------------------------------ #