mikepenz / action-junit-report

Reports junit test results as GitHub Pull Request Check
https://blog.mikepenz.dev
Apache License 2.0
321 stars 120 forks source link

Question on annotations when the action is applied in a resuable workflow #1153

Closed watermarkhu closed 2 months ago

watermarkhu commented 3 months ago

Hi!

I've got a question on the annotations outputted bu the current action. When the action is called directly from a workflow file from the repository, it very nicely displays the test errors in annotations, and the test output can be collapsed. image

However, if the action is bundled in a reusable workflow (e.g. resuable-workflow.yml) and called in in action with:

jobs:
  example:
    uses: ./.github/workflows/reusable-workflow.yml

In this case the annotation only provides a summary of the test-run, where the detailed test output information is not available.

image

Is there any way where the annotations can be passed on from the reusable workflow to the main action scope?

mikepenz commented 3 months ago

Unfortunately, I am not aware of any special API to do this. As far as I know and can tell this is a behavior from GitHub. If someone has an alternative solution I'd appreciate the input.

mikepenz commented 2 months ago

Closing as I believe this is not something that can be solved in the action. If somebody has a solution or an idea how to work around this, feel free to re-open or open a PR. Thanks