kishikawakatsumi / xcresulttool

A GitHub Action that generates a human-readable test report from the Xcode result bundle and shows it on GitHub Checks.
MIT License
363 stars 69 forks source link

Possible to share the source code for xcresulttool-file.herokuapp.com/file ? #652

Closed jverkoey closed 1 year ago

jverkoey commented 1 year ago

I was trying to figure out how this action is able to upload images for display in the results, and noticed the use of the xcresulttool-file.herokuapp.com/file service to do so. Is it possible to share the source for this service? I'm curious how the images are being attached to the camo service and would like to reproduce that behavior specifically in order to build a screenshot grid action.

kishikawakatsumi commented 1 year ago

https://github.com/kishikawakatsumi/xcresulttool-file

^ Here is the source code.

To display an image in a GitHub action, you cannot reference a local file and must upload it over the internet. However, files referenced over the network are automatically downloaded to GitHub, and the link to the image is eventually hosted on GitHub. So you don't need to store the image permanently, you just need to reference it for a moment.