From 00e3fce3c85125251600707a04da25c982959fa3 Mon Sep 17 00:00:00 2001 From: Shubham Singh Date: Wed, 20 Sep 2023 19:16:16 +0530 Subject: [PATCH] Add github CI workflow for formatting/lint checks --- .github/ci-gradle.properties | 7 +++++ .github/workflows/Check.yaml | 48 +++++++++++++++++++++++++++++++++++ .gitignore | 1 - gradle/libs.versions.toml | 2 +- keystore/splashy.jks | Bin 0 -> 2742 bytes 5 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 .github/ci-gradle.properties create mode 100644 .github/workflows/Check.yaml create mode 100644 keystore/splashy.jks diff --git a/.github/ci-gradle.properties b/.github/ci-gradle.properties new file mode 100644 index 0000000..2d05d0d --- /dev/null +++ b/.github/ci-gradle.properties @@ -0,0 +1,7 @@ +org.gradle.daemon=false +org.gradle.parallel=true +org.gradle.jvmargs=-Xmx5120m +org.gradle.workers.max=2 + +kotlin.incremental=false +kotlin.compiler.execution.strategy=in-process \ No newline at end of file diff --git a/.github/workflows/Check.yaml b/.github/workflows/Check.yaml new file mode 100644 index 0000000..2297ea4 --- /dev/null +++ b/.github/workflows/Check.yaml @@ -0,0 +1,48 @@ +name: Check + +on: + push: + branches: + - main + pull_request: + branches: + - main + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: macos-latest + timeout-minutes: 30 + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Copy CI gradle.properties + run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties + + - name: Retrieve the secret and decode it to a file + env: + SECRETS_BASE64: ${{ secrets.SECRETS_BASE64 }} + run: | + echo SECRETS_BASE64 | base64 --decode > secrets.properties + + - name: Set up JDK 17 + uses: actions/setup-java@v1 + with: + java-version: 17 + distribution: zulu + cache: 'gradle' + + - name: Check formatting + run: ./gradlew spotlessCheck lintRelease --stacktrace + + - name: Upload build reports + if: always() + uses: actions/upload-artifact@v2 + with: + name: build-reports + path: app/build/reports \ No newline at end of file diff --git a/.gitignore b/.gitignore index 885449f..270c44d 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,5 @@ captures .cxx local.properties xcuserdata/ -*.jks *yarn.lock secrets.properties diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index c6b15fa..2663508 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -21,7 +21,7 @@ kamel = "0.6.0" materialKolor = "1.2.0" spotless = "6.20.0" ktfmt = "0.44" -precompose = "1.5.0-beta01" +precompose = "1.5.1" moko-mvvm = "0.16.1" moko-permissions = "0.16.0" kotlinx-datetime = "0.4.0" diff --git a/keystore/splashy.jks b/keystore/splashy.jks new file mode 100644 index 0000000000000000000000000000000000000000..d12bd502b7892e39f1f00d88e580348d83919a1a GIT binary patch literal 2742 zcma)8X*d*&7M>Y1%!m@QMs_h8GlRw?OJw^j*(G7@GxntjmCRU@oh%8%XWtSjw*$hAv_Q)LS(%V< zFuQssE+t+M(@T7JX{gC+tmBj>I0gg~X8{2PkWBQ@e_sT_AOIvEJq#DF1$3kX10}&M zzVT+ZmOEr!i1dS_jUccxmXBdS%MgKNHr09c2+yckI#7#1c>UfNSKSsbwua0Z#9ZEo z*|IQaYY$@RrTr>Jvbk~DQeV%glJ(`4!Lv+#c3$A>hHpFMpwL$p&;Z%5Dg!dG8YvjI z%WUf{dUMEiMB6DSk9Tdiaw^GvkqikZa*QP#)H}?J%VYY+f)WafX$7(If~)>suF2_w zYol)m?~t=B9m-@TjJkMC?}|87nWGK^WT&*fc~$MQ9({}Y@x42c&M$B!q@47K(|X#9 zNnT^v(w|SF&6RS-5__p|CfH zgWqd2%C6!a24yi%1~|?5@1FJfEU;?H^&oPiJ2!B;)B=t477`+x#(? zGVgCuQeP4JSraSG3wM!PZ z@eosGC_+CEmDg-KrG92tXe#&cBu6HXUwcviAS;5V&2`4^UZ&@wnXeoc5XXaFniFoe zUQB8vPmuJVIkh}|6^1u`v3i?jO@`Kf2P|66d6s!K02;jci$D!dE5RDPeZQW%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