From 8d4b93c1656cf287beed5d084d760cf84f764a8f Mon Sep 17 00:00:00 2001 From: Travis Lyons Date: Fri, 7 Aug 2026 17:20:33 +0000 Subject: [PATCH] Add SonarQube analysis to CI --- .github/workflows/build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2f40415..0ce9e9a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,8 +38,13 @@ jobs: path: ~/.gradle/caches key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} restore-keys: ${{ runner.os }}-gradle - - name: Build and analyze + - name: Build and test + run: ./gradlew build + + - name: SonarQube analysis + # Analysis is advisory: a failed or unconfigured scan must not fail the build. + continue-on-error: true env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} - run: ./gradlew build sonar --info + run: ./gradlew sonar --info