Skip to content

Commit

Permalink
Add java format checker to github Actions (#262)
Browse files Browse the repository at this point in the history
Add java format checker

Signed-off-by: Taras Drozdovskyi <[email protected]>
  • Loading branch information
tdrozdovsky authored Oct 26, 2023
1 parent 3ff0ab3 commit 748219c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/java-format-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Check Java Format

on: [ push, pull_request ]

jobs:

formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3 # v2 minimum required
- uses: axel-op/googlejavaformat-action@v3
with:
args: "--aosp --skip-javadoc-formatting --skip-reflowing-long-strings --skip-sorting-imports --replace"
skip-commit: true
- name: Print diffs
run: git --no-pager diff --exit-code

0 comments on commit 748219c

Please sign in to comment.