GitHub Action to Publish JaCoCo Format Code Coverage XML and attach it to the Workflow Run as a Check Run. Also can enforce Coverage Quality Gate.
63
stars
7
forks
source link
Action doesn't work if `coverage_report_title` is not set #49
Closed
josephearl closed 8 months ago
Describe the bug
coverage_report_title
is marked as optional, but the action fails if it is not set.To Reproduce
Use the action with only the required parameters
github_token
andcoverage_results_path
.The action fails with an error:
I believe the code here https://github.com/PavanMudigonda/jacoco-reporter/blob/2f45a2fe8f51b1254496217e035ddaf357505093/action.ps1#L56C5-L58C6 and in other places should be setting the title to
$script:coverage_report_name
and not$report_name
.Expected behavior
It works with only the required arguments.