Closed ebbeknudsen closed 9 months ago
@EnricoMi does this trigger running the automated tests GitHub Action? I had a problem running one of them locally, but it didn't seem to have anything to do with my changes.
@EnricoMi i've added tests to verify the new feature
@EnricoMi any news here? :)
Looking at this a bit closer made me think that the publish_check
method could need some refactoring, as it is currently doing two things: collect the (JSON) data to publish, and publish the check. Splitting that makes the calling publish
method much cleaner. I have drafted something locally, but this tests then also require some rework. I am going to finish this in the coming weeks.
Fixed in #568, contribution credit in 57248341ab40c707e2d76678040801738344be26. Thanks for raising this issue!
Publish json output (and json_file) if json_file is set
As it is now, the json file is only published if
check_run
is set to true, which this PR changes. Now it will also publish even ifcheck_run
is false, as long asjson_file
is set.An alternative would be to add a new setting called
publish_check_run
(defaulttrue
for backwards compatibility), which would be used to decide if the check is published. Then if you want the json output without publishing the check run (in my case we can't use it, since it publishes to an incorrect workflow), you could setcheck_run
totrue
, but overridepublish_check_run
tofalse
Related issue: https://github.com/EnricoMi/publish-unit-test-result-action/issues/554