File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,28 +93,16 @@ jobs:
9393 working-directory : cpp
9494 run : gcov --preserve-paths $(find -name '*.gcno')
9595
96- - uses : actions/cache@v3
97- name : Cache SonarCloud scan cache
98- id : sonar-scan-cache
99- with :
100- path : ~/.sonar_cache/
101- key : sonar-scan-cache-${{ env.SONAR_SCANNER_VERSION }}-${{ github.ref_name }}-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}
102- restore-keys : |
103- sonar-scan-cache-${{ env.SONAR_SCANNER_VERSION }}-${{ github.ref_name }}
104-
10596 - name : Run sonar-scanner
10697 env :
10798 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
10899 run : >-
109- (mkdir -p $HOME/.sonar_cache || true) &&
110100 $HOME/.sonar/sonar-scanner-${{ env.SONAR_SCANNER_VERSION }}-linux/bin/sonar-scanner
111101 --define sonar.host.url="${{ env.SONAR_SERVER_URL }}"
112102 --define sonar.projectKey=${{ env.SONAR_PROJECT_KEY }}
113103 --define sonar.organization=${{ env.SONAR_ORGANIZATION }}
114104 --define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}"
115105 --define sonar.cfamily.gcov.reportsPath=.
116- --define sonar.cfamily.cache.enabled=true
117- --define sonar.cfamily.cache.path="$HOME/.sonar_cache/"
118106 --define sonar.coverage.exclusions="cpp/**/test/**"
119107 --define sonar.cpd.exclusions="cpp/**/test/**"
120108 --define sonar.inclusions="cpp/**,python/**"
You can’t perform that action at this time.
0 commit comments