diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3a1fa9c..341e33c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -117,10 +117,9 @@ jobs: sonarcloud: runs-on: ubuntu-latest env: - SONAR_SCANNER_VERSION: 4.6.1.2450 + SONAR_SCANNER_VERSION: 5.0.1.3006 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - if: env.SONAR_TOKEN != '' steps: - uses: actions/checkout@v2 with: @@ -139,9 +138,10 @@ jobs: python -m pip --disable-pip-version-check install yakut~=0.7 - name: Set up JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: - java-version: 11 + java-version: 17 + distribution: 'zulu' - name: Cache SonarCloud packages uses: actions/cache@v1 @@ -178,6 +178,7 @@ jobs: # https://community.sonarsource.com/t/analyzing-a-header-only-c-library/51468 - name: Run sonar-scanner + if: env.SONAR_TOKEN != '' run: > sonar-scanner --define sonar.host.url="https://sonarcloud.io"