-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
404 Not Found #12
Comments
|
I think the answer is |
This action is simply a wrapper for https://github.com/htmlpreview/htmlpreview.github.com. htmlpreview doesn't support this use-case. But what I can do is that I can pull the HTML file and send it as a data URI. That should make it load the generated HTML files. |
If that would work, that would be amazing 😊 🙏 |
Any updates on this ? |
Sorry! I'm busy with my exams. I can't do this before the new year. |
No problem at all, thanks man and good luck!! |
@pavi2410 I am currently also looking for the same thing. I have a test report in HTML format, and I am hoping there is a github action that can display my test report. I notice that you plan to make html-preview action to work like that. Is there any update? Thanks! |
The issue is that local/generated/private HTML files can't be seen by a public service like https://htmlpreview.github.io A naive solution would be to copy the contents of the HTML file and return a link to it using a data URI or some other way. But, it won't able to resolve CSS/JS files that the HTML file may require to properly display content. If you have a better solution to this problem, I'd be very happy to hear :) |
@pavi2410 Thanks for the quick response! My HTML report file is generated by newman, which is a single file that contains all the pass/fail info. Using the htmlpreview service link, the file can be seen like this: https://htmlpreview.github.io/?https://github.com/kama-equinix/my-actions/blob/main/newman/postman-echo-2021-05-31-04-47-43-718-0.html#pills-summary Ideally, I am hoping after a job is run, a link is generated and displayed in the job summary -> html result with this link. I search a lot , but didn't find any other github actions provide this function. But, in Jenkins, it has HTML report plugin to publish the test report. |
@qiongwu-eqix @etienne-herlaut-cko - did you find any good solution for this problem?
|
@vitalyk-multinarity I think in your case you can publish HTML files as artifacts and post their URLs in the comment. Although, I'm not sure if Github now allows single files in artifacts as they use to download as zip before |
It allows single file, but we cannot download this file as is, we're getting .zip archive. |
The other way is to encode the HTML as a data URI. Depending on the HTML size and content, it may or may not work |
Thank you, didn't know about this option, I'll check it. |
I am trying to use your tool to display my test result.
I like the PR comment functionality so I am using your
v1a
.It passes the
Publish test results
step but then I get a 404 when clicking on the link:Any pointers?
Here is my workflow:
The text was updated successfully, but these errors were encountered: