GitHub Action
Publish Checkstyle Report
v1.0.0
Latest version
An action that displays Checkstyle errors as inline code annotations.
After the workflow step that runs Checkstyle and produces the report XML files, add this action:
- name: Publish Checkstyle report
uses: Juuxel/publish-checkstyle-report@v1
if: ${{ failure() || success() }}
with:
# required: The glob paths to report XML files as a multiline string
# The format below works for the Gradle Checkstyle plugin with default configurations
reports: |
build/reports/checkstyle/*.xml
You can replace
failure() || success()
with justfailure()
if you only want the annotations to appear when the build has failed.