diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 2de1b7ad..4820d0e5 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -45,8 +45,17 @@ jobs: key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} restore-keys: ${{ runner.os }}-gradle - - name: Build and analyze + - name: Build + run: ./gradlew build jacocoTestReport --info + + - name: Set up JDK 17 + uses: actions/setup-java@v3.12.0 + with: + java-version: '17' + distribution: 'temurin' + + - name: Analyze env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run: ./gradlew build jacocoTestReport sonarqube --info + run: ./gradlew sonarqube --info