PavanMudigonda / jacoco-reporter

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.
https://linkedin.com/in/PavanMudigonda
MIT License
63 stars 7 forks source link

Cannot bind coveragePercentageString argument to parameter 'Value' in actions.ps1:244 #23

Closed jaroslaw-drapala-gss closed 1 year ago

jaroslaw-drapala-gss commented 1 year ago

Describe the bug Cannot bind coveragePercentageString argument to parameter 'Value' in actions.ps1:244 because it is an empty string https://github.com/PavanMudigonda/jacoco-reporter/blob/main/action.ps1#L244

To Reproduce Steps to reproduce the behavior:

  1. Run 'JaCoCo Code Coverage Report'
  2. If one of the condition is true then coveragePercentageString is never set https://github.com/PavanMudigonda/jacoco-reporter/blob/main/action.ps1#L222
  3. Error: Cannot bind argument to parameter 'Value' because it is an empty string.

Expected behavior coveragePercentageString shouldn't be an empty string

Screenshot image

PavanMudigondaTR commented 1 year ago

@jaroslaw-drapala-gss i will fix it today!

PavanMudigonda commented 1 year ago

@jaroslaw-drapala-gss I have fixed in v4.6 Could you please try again by updating version number ?

jaroslaw-drapala-gss commented 1 year ago

@PavanMudigonda Seems to be working fine now. thx.