Pierre Tellier e6565275c8
All checks were successful
Format / formatting (push) Successful in 8s
CI / build (push) Successful in 12s
fix: removed git action push to not destroy our history
2025-02-12 11:04:49 +01:00

19 lines
527 B
YAML

name: Format
on: [ push, pull_request ]
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 # v2 minimum required
- uses: actions/setup-java@v4
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '21'
- uses: axel-op/googlejavaformat-action@v3
with:
args: "--set-exit-if-changed --skip-sorting-imports --aosp"
- name: Print diffs
run: git --no-pager diff --exit-code