关于 GitHub 操作 / GitHub 拉取请求的 HTML 报告

Max*_*dov 11 github report pull-request github-actions

是否有可能在 GitHub 拉取请求检查中显示漂亮的 html 报告(来自 Jest、Mocha、Cypress、测试覆盖率等测试运行程序)?

TMa*_*Man 5

您有机会通过工作摘要实现您所寻找的目标吗?

https://github.blog/2022-05-09-supercharging-github-actions-with-job-summaries/

https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary

如果您需要实际 PR 中的某些内容,可以编写您自己的 Github Action,它将根据您确定的数据进行评论/更新。具体看一下 Github Actions Toolkit @actions/github

https://github.com/actions/toolkit


Max*_*dov 1

也许不是解决方案,但可以解决。GitHub Actions 有下一个操作:actions/upload-artifact https ://github.com/actions/upload-artifact

因此,您可以将报告导出为工件,然后下载它们。也许如果它是公共存储库,您可以通过 API 下载它们,但没有任何开箱即用的东西......祝你好运......