我如何在Github Actions中把Checkstyle的结果报告成拉请求注释?

问题描述 投票:0回答:1

我有一个Gradle构建,我想把它移到Github Actions上。我找到了一个启动工作流,可以在提交时运行Gradle构建,但我还没有找到一种方法来报告Checkstyle错误作为拉请求注释。

https:/help.github.comenactionslanguage-and-framework-guidesbuilding-and-testing-java-with-gradle。

是否有一种关闭自我的方式来报告所有Checktyle XML的警告和错误,作为拉请求。

gradle github continuous-integration checkstyle github-actions
1个回答
1
投票

一个快速的谷歌搜索让我找到了这个动作。https:/github.commarketplaceactions run-java-checkstyle

自己还没试过,但如果不成功的话,值得一试,作为基础。

© www.soinside.com 2019 - 2024. All rights reserved.