Skip to content

Commit 41e0d8f

Browse files
Format kotlin files in Github Actions
1 parent 1abbb9b commit 41e0d8f

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/pull_request.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,23 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15+
with:
16+
# Checkout the fork/head-repository and push changes to the fork.
17+
# If you skip this, the base repository will be checked out and changes
18+
# will be committed to the base repository!
19+
repository: ${{ github.event.pull_request.head.repo.full_name }}
20+
# Checkout the branch made in the fork. Will automatically push changes
21+
# back to this branch.
22+
ref: ${{ github.head_ref }}
1523
- name: Set up JDK
1624
uses: actions/setup-java@v4
1725
with:
1826
distribution: 'zulu'
1927
java-version: '17'
20-
- name: ktLint
28+
- name: formatKotlin
29+
run: ./gradlew formatKotlin
30+
- uses: stefanzweifel/git-auto-commit-action@v5
31+
- name: lintKotlin
2132
run: ./gradlew lintKotlin
2233
- name: run apiCheck
2334
run: ./gradlew apiCheck

firebase-common/src/commonMain/kotlin/dev/gitlive/firebase/EncodeDecodeSettings.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import kotlinx.serialization.modules.SerializersModule
55
/**
66
* Settings used to configure encoding/decoding
77
*/
8-
public sealed interface EncodeDecodeSettings {
8+
public sealed interface EncodeDecodeSettings
9+
{
910

1011
/**
1112
* The [SerializersModule] to use for serialization. This allows for polymorphic serialization on runtime

0 commit comments

Comments
 (0)