Skip to content

Commit

Permalink
Merge PR #62 into 'main'
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Jul 14, 2023
2 parents 076c31b + 411df72 commit d5bbeb2
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,24 @@ runs:
shell: bash
working-directory: ${{ steps.collection-metadata.outputs.checkout-path }}

- name: Log the next step action
if: steps.ansible-test-flags.outputs.coverage-arg != ''
run: >-
echo ▷ Generating a coverage report only grouped by command...
shell: bash
- name: Generate a coverage report only grouped by command
if: steps.ansible-test-flags.outputs.coverage-arg != ''
run: >-
set -x
;
~/.local/bin/ansible-test coverage xml
-v --requirements
--group-by command
;
set +x
shell: bash
working-directory: ${{ steps.collection-metadata.outputs.checkout-path }}

- name: Log the next step action
if: steps.ansible-test-flags.outputs.coverage-arg != ''
run: >-
Expand Down Expand Up @@ -626,12 +644,12 @@ runs:
run: >-
set +x
;
compgen -G "${{
ls -1 '${{
steps.collection-metadata.outputs.checkout-path
}}/tests/output/reports/coverage=${{
inputs.testing-type
}}=*.xml"
&& ( echo "present=true" >> ${GITHUB_OUTPUT} )
}}.xml'
&& ( echo "present=true" >> "${GITHUB_OUTPUT}" )
;
exit 0
shell: bash
Expand All @@ -645,7 +663,7 @@ runs:
steps.collection-metadata.outputs.checkout-path
}}/tests/output/reports/coverage=${{
inputs.testing-type
}}=python-*.xml
}}.xml
format: markdown
output: both
# Ref: https://github.com/irongut/CodeCoverageSummary/issues/66
Expand Down

0 comments on commit d5bbeb2

Please sign in to comment.