From 841f422773b564fe00e0fb62e9ec530327a2306f Mon Sep 17 00:00:00 2001 From: Jamie Newbon Date: Mon, 24 Aug 2020 16:42:14 +0100 Subject: [PATCH] #6750 Fetched full git history for blame and updated report paths --- .github/workflows/job-sonarcloud.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/job-sonarcloud.yml b/.github/workflows/job-sonarcloud.yml index 0c57c8f89..bb997bc97 100644 --- a/.github/workflows/job-sonarcloud.yml +++ b/.github/workflows/job-sonarcloud.yml @@ -14,6 +14,8 @@ jobs: steps: - uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Run Sonar run: | @@ -35,7 +37,7 @@ jobs: cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_COVERAGE=ON .. . ./version echo "Building, output redirected to file due to verbrosity this may take 10-15 mins to complete..." - build-wrapper-linux-x86-64 --out-dir bw-output make -j 2>&1 > output.txt + build-wrapper-linux-x86-64 --out-dir bw-output make -j > output.txt 2>&1 echo "Outputting last 200 lines of the build..." tail -200 output.txt @@ -50,7 +52,7 @@ jobs: -Dsonar.exclusions=./ext/**,**/build-release/** \ -Dsonar.cfamily.build-wrapper-output=bw-output \ -Dsonar.host.url=https://sonarcloud.io - -Dsonar.cxx.coverage.reportPath=./build-release/unit_coverage.xml - -Dsonar.cxx.clangtidy.reportPath=./build-release/output.txt + -Dsonar.cxx.coverage.reportPath=unit_coverage.xml + -Dsonar.cxx.clangtidy.reportPath=output.txt env: SONAR_TOKEN: ${{secrets.SONAR_TOKEN}}