Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion action.yml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[MegaLinter] reported by reviewdog 🐶

name: SonarQube Issue Conversion
description: Transform tool output into generic SonarQube format(s)
inputs:
input:
description: Single or multiple tool output files to convert
required: true
output:
description: Output file for converted issues
required: true
transformation:
description: Type of transformation to apply (one of gtest-to-generic-execution, mutation-test-to-generic-issue)
required: true
runs:
using: composite
steps:
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: '3.12'
- shell: bash
run: |
python -m pip install --upgrade pip==24.3.1
pip install lxml
- shell: bash
run: |
echo 'Using transformation: ${{ inputs.transformation }} to convert ${{ inputs.input }} to ${{ inputs.output }}'
case ${{ inputs.transformation }} in
'gtest-to-generic-execution')
{ echo '<testExecutions version="1">'; xsltproc ${GITHUB_ACTION_PATH}/converters/gtest-to-generic-execution.xslt ${{ inputs.input }}; echo '</testExecutions>'; } | tee ${{ inputs.output }} > /dev/null
;;
'mutation-test-to-generic-issue')
;;
*)
echo 'Unknown transformation type: ${{ inputs.transformation }}'
exit 1
;;
esac

Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ runs:

case ${{ inputs.transformation }} in
'gtest-to-generic-execution')
{ echo '<testExecutions version="1">'; xsltproc converters/gtest-to-generic-execution.xslt ${{ inputs.input }}; echo '</testExecutions>'; } | tee ${{ inputs.output }} > /dev/null
{ echo '<testExecutions version="1">'; xsltproc ${GITHUB_ACTION_PATH}/converters/gtest-to-generic-execution.xslt ${{ inputs.input }}; echo '</testExecutions>'; } | tee ${{ inputs.output }} > /dev/null
;;
'mutation-test-to-generic-issue')
;;
Expand Down