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