feat: Github Action to enable Checkstyle #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: reviewdog | |
on: | |
pull_request: | |
types: [ opened, synchronize ] | |
jobs: | |
checkstyle: | |
name: runner / checkstyle | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run Checkstyle | |
run: | | |
# Run your checkstyle command here | |
java -jar checkstyle.jar -c /google_checks.xml src/ | |
- name: reviewdog | |
uses: reviewdog/action-checkstyle@v1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
reporter: github-pr-review | |
checkstyle_config: google_checks.xml | |
fail_on_error: true |