Skip to content

Commit

Permalink
Add java format checker
Browse files Browse the repository at this point in the history
Signed-off-by: Taras Drozdovskyi <t.drozdovsky@samsung.com>
  • Loading branch information
tdrozdovsky committed Oct 25, 2023
1 parent 36b0eae commit f114322
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 f114322

Please sign in to comment.