diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 69beb9c8..581ea495 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,8 @@ jobs: build: name: Build runs-on: ubuntu-latest + env: + BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory steps: - uses: actions/checkout@v3 with: @@ -31,6 +33,11 @@ jobs: ./coverage - name: SonarCloud Scan uses: sonarsource/sonarcloud-github-action@master + with: + args: > + -D sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}" + -D sonar.coverageReportPaths=coverage.xml + -D sonar.cfamily.cache.enabled=false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}