diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 04ee2df..34017c8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,6 +27,11 @@ jobs: cache: maven - name: Build & test with Maven run: mvn clean test + - name: Sonar analysis + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + run: mvn verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar sonarcloud: runs-on: ubuntu-latest diff --git a/sonar-project.properties b/sonar-project.properties index 8f70a36..464c796 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -5,7 +5,7 @@ sonar.sourceEncoding=UTF-8 sonar.sources=src # Java -# sonar.java.binaries=/usr/local/java/jdk-17/bin/ +sonar.java.source=17 sonar.exclusions=src/main/java/com/coreoz/db/generated/*,\ src/main/java/com/coreoz/db/QuerydslGenerator.java