Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Latest commit

 

History

History
27 lines (20 loc) · 1.06 KB

README.md

File metadata and controls

27 lines (20 loc) · 1.06 KB

Publish Checkstyle Report

Build status License Version

An action that displays Checkstyle errors as inline code annotations.

Example error screenshot

Usage

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 just failure() if you only want the annotations to appear when the build has failed.