-
Notifications
You must be signed in to change notification settings - Fork 492
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(testing): add reviewdog GH action linting PRs with Maven Checkst…
…yle plugin. #6070
- Loading branch information
1 parent
52fee75
commit 749a33e
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Maven CheckStyle Task | ||
on: | ||
pull_request: | ||
paths: | ||
- "**.java" | ||
|
||
jobs: | ||
checkstyle_job: | ||
runs-on: ubuntu-latest | ||
name: Checkstyle job | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Run check style | ||
uses: nikitasavinov/checkstyle-action@master | ||
with: | ||
fail_on_error: true | ||
reporter: github-pr-review | ||
checkstyle_config: checkstyle.xml | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|