diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 7b35802..2a74bcb 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -36,4 +36,12 @@ jobs: - name: Check code formatting run: | - git diff --name-only ${{ github.base_ref }} | grep '\.kt$' | xargs ktlint --relative . \ No newline at end of file + git diff --name-only ${{ github.base_ref }} | grep '\.kt$' | xargs ktlint --relative . + + - name: Install Checkstyle + run: | + curl -L -o checkstyle.zip https://github.com/checkstyle/checkstyle/releases/download/checkstyle-8.44/checkstyle-8.44-all.jar + unzip checkstyle.zip + + - name: Check Java code formatting + run: java -jar checkstyle-8.44-all.jar -c sun_checks.xml $(find . -name '*.java')