google-java-format

This commit is contained in:
Nick Gerleman
2022-10-14 08:00:27 -07:00
parent 8c8ea5e6f0
commit a6016c9567
2 changed files with 11 additions and 1 deletions

View File

@@ -14,4 +14,4 @@ runs:
- name: clang-format
working-directory: ${{ inputs.directory }}
shell: bash
run: clang-format-12 **/*(.h|.cpp|.m|.mm)
run: clang-format-12 **/*.h **/*.cpp **/*.m **/*.mm

View File

@@ -16,3 +16,13 @@ jobs:
- name: Build
run: ./gradlew assemble${{ matrix.mode }}
format:
name: Build (${{ matrix.mode }})
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: google-java-format
run: npx --yes google-java-format -i --glob=java/**/*.java