diff --git a/.github/workflows/analyze.yml b/.github/workflows/analyze.yml index 06bdf20a..cce26810 100644 --- a/.github/workflows/analyze.yml +++ b/.github/workflows/analyze.yml @@ -20,7 +20,7 @@ jobs: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # Shallow clones should be disabled for a better relevancy of analysis fetch-depth: 0 @@ -32,6 +32,7 @@ jobs: uses: actions/setup-java@v4 with: java-version: 17 + java-package: jre distribution: temurin - name: Set up Python for gcovr @@ -46,6 +47,8 @@ jobs: uses: SonarSource/sonarcloud-github-c-cpp@v1 - name: Run build-wrapper + env: + PATH: $JAVA_HOME/bin:$PATH run: | build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} make -j $(nproc) coverage DEBUG=1