Skip to content

Commit 083542a

Browse files
authored
chore: use an action to convert gtest to sonar execution
1 parent 6aa8866 commit 083542a

File tree

2 files changed

+5
-26
lines changed

2 files changed

+5
-26
lines changed

.github/formatters/gtest-to-generic-execution.xslt

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/static-analysis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,13 @@ jobs:
4747
buildPreset: "mutation-testing"
4848
testPreset: "mutation-testing"
4949
configurePresetAdditionalArgs: "['-DCMAKE_C_COMPILER_LAUNCHER=ccache', '-DCMAKE_CXX_COMPILER_LAUNCHER=ccache']"
50+
- uses: philips-software/sonarqube-issue-conversion@ef8f19e025b4e7c6581ca6511662da6774eea09e # v1.0.0
51+
with:
52+
input: ${{ github.workspace }}/testresults/*.xml
53+
output: execution.xml
54+
transformation: gtest-to-generic-execution
5055
- name: Convert results
5156
run: |
52-
{ echo '<testExecutions version="1">'; xsltproc .github/formatters/gtest-to-generic-execution.xslt ${{ github.workspace }}/testresults/*.xml; echo '</testExecutions>'; } | tee execution.xml > /dev/null
5357
jq -s 'reduce .[] as $item ({}; . * $item)' reports/mull/*.json > reports/mull/merged-mutation.json
5458
jq --arg workspace "$GITHUB_WORKSPACE" -f .github/formatters/mutation-report-to-generic-issue.jq reports/mull/merged-mutation.json > mutation-sonar.json
5559
cp build/coverage/compile_commands.json compile_commands.json

0 commit comments

Comments
 (0)