From 673c442e7b242d1ad99ad9df6cdfded807e4c048 Mon Sep 17 00:00:00 2001 From: Felix Horvat Date: Mon, 17 Jan 2022 16:54:31 +0100 Subject: [PATCH] add java formatting --- .github/workflows/flutter_ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/flutter_ci.yml b/.github/workflows/flutter_ci.yml index 3cef5f9e2..b6707163e 100644 --- a/.github/workflows/flutter_ci.yml +++ b/.github/workflows/flutter_ci.yml @@ -39,7 +39,20 @@ jobs: - run: chmod +x swiftformat_linux - name: Check Swift formatting run: ./swiftformat_linux --swiftversion 4.2 --maxwidth 100 --lint ios + + check-java-formatting: + name: "Check Java formatting" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: get google-java-format + run: wget https://github.com/google/google-java-format/releases/download/v1.13.0/google-java-format-1.13.0-all-deps.jar + - run: java --version + - name: Check Java formatting + run: java -jar google-java-format-1.13.0-all-deps.jar --set-exit-if-changed -n $(find . -type f -name "*.java") + + build-android: environment: ANDROID_CI_DOWNLOADS_TOKEN name: "Build Android apk"