Skip to content

Commit e4c61fb

Browse files
Format kotlin files in Github Actions
1 parent 1abbb9b commit e4c61fb

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/pull_request.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,22 @@ on:
1010
jobs:
1111
lint:
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
1315
steps:
1416
- uses: actions/checkout@v4
17+
with:
18+
repository: ${{ github.event.pull_request.head.repo.full_name }}
19+
ref: ${{ github.head_ref }}
1520
- name: Set up JDK
1621
uses: actions/setup-java@v4
1722
with:
1823
distribution: 'zulu'
1924
java-version: '17'
20-
- name: ktLint
25+
- name: formatKotlin
26+
run: ./gradlew formatKotlin
27+
- uses: stefanzweifel/git-auto-commit-action@v5
28+
- name: lintKotlin
2129
run: ./gradlew lintKotlin
2230
- name: run apiCheck
2331
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)