Skip to content

Commit

Permalink
Format kotlin files in Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
siarhei-luskanau committed Jul 25, 2024
1 parent 1abbb9b commit 5122332
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5122332

Please sign in to comment.