diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml index a1fb952..4df455b 100644 --- a/.github/workflows/sonarqube.yml +++ b/.github/workflows/sonarqube.yml @@ -41,6 +41,15 @@ jobs: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --file pom.xml - name: Analyze with SonarQube # You can pin the exact commit or the version. @@ -57,6 +66,7 @@ jobs: # mandatory -Dsonar.projectKey=Kilowatt-Commando_controller-service -Dsonar.organization=kilowatt-commando + -Dsonar.java.binaries=target/classes # Comma-separated paths to directories containing main source files. #-Dsonar.sources= # optional, default is project base directory # When you need the analysis to take place in a directory other than the one from which it was launched