File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 46
46
uses : actions/setup-python@v5
47
47
with :
48
48
python-version : " 3.12"
49
- - name : Install sonar-scanner and build-wrapper
50
- uses : SonarSource/sonarcloud-github-c-cpp@v3
49
+ - name : Install build-wrapper
50
+ uses : SonarSource/sonarqube-scan-action/install-build-wrapper@v5
51
51
52
52
- name : Python test and coverage
53
53
run : |
@@ -70,11 +70,13 @@ jobs:
70
70
# remove branch hits count, since it does not make sense in heavy C++ templates
71
71
sed -i -r "s/\s*branchesToCover\s*=\s*\"[0-9]+\"\s+coveredBranches\s*=\s*\"[0-9]+\"//g" cpp_coverage.xml
72
72
73
- - name : Run sonar-scanner
73
+ - name : SonarQube Scan
74
74
# only run sonar server in push event or pull request event from own repo
75
- if : ${{ (github.event_name == 'push') || (github.event.pull_request.head.repo.owner.login == 'PowerGridModel') }}
75
+ if : ${{ (github.event_name == 'push') || (github.event.pull_request.head.repo.owner.login == 'PowerGridModel') }}
76
76
env :
77
77
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
78
78
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
79
- run : |
80
- sonar-scanner --define sonar.cfamily.compile-commands="${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json"
79
+ uses : SonarSource/sonarqube-scan-action@v5
80
+ with :
81
+ args : >
82
+ --define sonar.cfamily.compile-commands="${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json"
You can’t perform that action at this time.
0 commit comments