From 5122332cd86bfa9b935509b154e9fc88e37ddd80 Mon Sep 17 00:00:00 2001 From: Siarhei Luskanau Date: Wed, 24 Jul 2024 15:23:02 +0200 Subject: [PATCH 1/2] Format kotlin files in Github Actions --- .github/workflows/push.yml | 23 +++++++++++++++++++ .../gitlive/firebase/EncodeDecodeSettings.kt | 3 ++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/push.yml diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml new file mode 100644 index 000000000..86097d791 --- /dev/null +++ b/.github/workflows/push.yml @@ -0,0 +1,23 @@ +name: Push + +on: [ push ] + +jobs: + formatKotlin: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} + - name: Set up JDK + uses: actions/setup-java@v4 + with: + distribution: 'zulu' + java-version: '17' + - name: formatKotlin + run: ./gradlew formatKotlin + - uses: stefanzweifel/git-auto-commit-action@v5 + - name: lintKotlin + run: ./gradlew lintKotlin diff --git a/firebase-common/src/commonMain/kotlin/dev/gitlive/firebase/EncodeDecodeSettings.kt b/firebase-common/src/commonMain/kotlin/dev/gitlive/firebase/EncodeDecodeSettings.kt index d73b9ede0..8c0de9a95 100644 --- a/firebase-common/src/commonMain/kotlin/dev/gitlive/firebase/EncodeDecodeSettings.kt +++ b/firebase-common/src/commonMain/kotlin/dev/gitlive/firebase/EncodeDecodeSettings.kt @@ -5,7 +5,8 @@ import kotlinx.serialization.modules.SerializersModule /** * Settings used to configure encoding/decoding */ -public sealed interface EncodeDecodeSettings { +public sealed interface EncodeDecodeSettings +{ /** * The [SerializersModule] to use for serialization. This allows for polymorphic serialization on runtime From 39b829f0b7cf71b412733d45cd9bbbb0d2771291 Mon Sep 17 00:00:00 2001 From: siarhei-luskanau Date: Thu, 25 Jul 2024 09:01:02 +0000 Subject: [PATCH 2/2] Apply automatic changes --- .../kotlin/dev/gitlive/firebase/EncodeDecodeSettings.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/firebase-common/src/commonMain/kotlin/dev/gitlive/firebase/EncodeDecodeSettings.kt b/firebase-common/src/commonMain/kotlin/dev/gitlive/firebase/EncodeDecodeSettings.kt index 8c0de9a95..d73b9ede0 100644 --- a/firebase-common/src/commonMain/kotlin/dev/gitlive/firebase/EncodeDecodeSettings.kt +++ b/firebase-common/src/commonMain/kotlin/dev/gitlive/firebase/EncodeDecodeSettings.kt @@ -5,8 +5,7 @@ import kotlinx.serialization.modules.SerializersModule /** * Settings used to configure encoding/decoding */ -public sealed interface EncodeDecodeSettings -{ +public sealed interface EncodeDecodeSettings { /** * The [SerializersModule] to use for serialization. This allows for polymorphic serialization on runtime