Skip to content

Commit 422d9ab

Browse files
committed
ci: replace Github action package
1 parent b738880 commit 422d9ab

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/code-quality.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@ jobs:
1919
java-version: '25'
2020
- name: Run Checkstyle
2121
run: mvn --batch-mode checkstyle:check
22+
- name: Install reviewdog
23+
uses: reviewdog/action-setup@v1
24+
with:
25+
reviewdog_version: latest
2226
- name: Annotate Checkstyle results in PR
2327
if: github.event_name == 'pull_request'
24-
uses: reviewdog/action-checkstyle@v1
25-
with:
26-
github_token: ${{ secrets.GITHUB_TOKEN }}
27-
reporter: github-pr-review
28-
level: error
29-
checkstyle_input: target/checkstyle-result.xml
28+
run: |
29+
reviewdog -f=checkstyle -name="checkstyle" -reporter=github-pr-review -level=error -fail-on-error < target/checkstyle-result.xml
30+
env:
31+
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3032

3133
coverage:
3234
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)