diff options
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/android-kotlin-format-check.yml | 14 | ||||
| -rw-r--r-- | .github/workflows/android-ktlint.yml | 21 |
2 files changed, 14 insertions, 21 deletions
diff --git a/.github/workflows/android-kotlin-format-check.yml b/.github/workflows/android-kotlin-format-check.yml new file mode 100644 index 0000000000..52a5f43e71 --- /dev/null +++ b/.github/workflows/android-kotlin-format-check.yml @@ -0,0 +1,14 @@ +--- +name: Android - Check kotlin formatting +on: + pull_request: + paths: [.github/workflows/android-ktlint.yml, android/**/*.kt] + workflow_dispatch: +jobs: + check-formatting: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Run ktfmt check + run: android/gradlew -p android ktfmtCheck diff --git a/.github/workflows/android-ktlint.yml b/.github/workflows/android-ktlint.yml deleted file mode 100644 index 70aad1c264..0000000000 --- a/.github/workflows/android-ktlint.yml +++ /dev/null @@ -1,21 +0,0 @@ ---- -name: Android - Kotlin linter -on: - pull_request: - paths: [.github/workflows/android-ktlint.yml, android/**/*.kt] - workflow_dispatch: -jobs: - ktlint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Install Ktlint - uses: nbadal/action-ktlint-setup@v1 - with: - ktlint_version: 0.45.1 - - - name: Check formatting - run: |- - cd android - ktlint -a |
