Skip to content

Commit

Permalink
πŸ’š Fix java version for formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
yhs0602 committed Dec 28, 2024
1 parent 24a2436 commit 1969ff9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/java-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- name: Install google-java-format
run: |
curl -Lo google-java-format.jar https://github.com/google/google-java-format/releases/download/v1.25.2/google-java-format-1.25.2-all-deps.jar
- name: Check formatting
run: |
java -jar google-java-format.jar --dry-run --set-exit-if-changed $(find . -name '*.java')

0 comments on commit 1969ff9

Please sign in to comment.