Skip to content
This repository was archived by the owner on Dec 4, 2025. It is now read-only.

Commit db4dc99

Browse files
committed
feat: add style check
1 parent 84b7ee4 commit db4dc99

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/maven.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,16 @@ jobs:
2727
java-version: '11'
2828
distribution: 'temurin'
2929
cache: maven
30+
- name: Setup reviewdog
31+
uses: reviewdog/action-setup@v1
32+
with:
33+
reviewdog_version: latest
34+
- name: download checkstyle
35+
run: curl -o checkstyle.jar -L https://github.com/checkstyle/checkstyle/releases/download/checkstyle-10.17.0/checkstyle-10.17.0-all.jar
36+
- name: checkstyle
37+
env:
38+
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
run: java -jar checkstyle.jar -c checkstyle-config.xml -f xml src | reviewdog -f=checkstyle -name="Checkstyle" -reporter=github-check
3040
- name: Build with Maven
3141
run: mvn -B package --file pom.xml
3242

33-
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
34-
- name: Update dependency graph
35-
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6

0 commit comments

Comments
 (0)