diff --git a/.github/workflows/java-formatting.yml b/.github/workflows/java-formatting.yml new file mode 100644 index 0000000..6b49c21 --- /dev/null +++ b/.github/workflows/java-formatting.yml @@ -0,0 +1,20 @@ +# SPDX-FileCopyrightText: 2022 Free Software Foundation Europe e.V. +# +# SPDX-License-Identifier: CC0-1.0 +--- +name: Format + +on: [ push, pull_request ] + +jobs: + + formatting: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 # v2 minimum required + - uses: axel-op/googlejavaformat-action@v4 + with: + args: "--replace" + skip-commit: true + - name: Print diffs + run: git --no-pager diff --exit-code