sentry-unity icon indicating copy to clipboard operation
sentry-unity copied to clipboard

Post test results in CI

Open bruno-garcia opened this issue 4 years ago • 6 comments
trafficstars

Today test results are already parse:

image

It would be great if the results were posted either as an action, like:

image

From this workflow, in this build

Or even as a PR comment like codecov does for coverage. It's particularly useful when tests fail so if it can show something from failing tests like the first 10 log lines it would be useful. But worse case linking to the failing build would be helpful.

bruno-garcia avatar Mar 24 '21 12:03 bruno-garcia

Woot how does that work. I've never seen that before.

Tyrrrz avatar Mar 24 '21 18:03 Tyrrrz

Looks like this action is responsible for generating the report: https://github.com/axel-op/dart-package-analyzer Trying to figure out how it does it...

Seems that the report itself is formatted as Markdown content:

https://github.com/axel-op/dart-package-analyzer/blob/d56ba070e9dcacc6d8ba48a41938b1e2b973de41/app/lib/github.dart#L58-L92

And the report seems to be published here:

https://github.com/axel-op/dart-package-analyzer/blob/d56ba070e9dcacc6d8ba48a41938b1e2b973de41/app/lib/github.dart#L203-L217

That in turn calls this API method:

https://docs.github.com/en/rest/reference/checks#update-a-check-run

image

Sounds doable, but I'm not too eager to implement this in PowerShell 😂 Can we do this when/if we migrate our workflow to a JavaScript GitHub action?

Tyrrrz avatar Mar 24 '21 19:03 Tyrrrz

Can we do this when/if we migrate our workflow to a JavaScript GitHub action?

Sure, if that lives inside github.com/getsentry, no problem :)

Eager to have the workflow run on macOS too 🚀

bruno-garcia avatar Mar 25 '21 02:03 bruno-garcia