summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/android-ktlint.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/android-ktlint.yml b/.github/workflows/android-ktlint.yml
new file mode 100644
index 0000000000..6b5c7bbdfd
--- /dev/null
+++ b/.github/workflows/android-ktlint.yml
@@ -0,0 +1,25 @@
+name: Android app Kotlin linter
+on:
+ # Run linter whenever a Kotlin file changes
+ push:
+ paths:
+ - .github/workflows/android-ktlint.yml
+ - android/**/*.kt
+ # Run linter if requested manually from the Actions tab
+ workflow_dispatch:
+jobs:
+ ktlint:
+ runs-on: ubuntu-latest
+ steps:
+ # Checkout repository
+ - uses: actions/checkout@v2
+
+ # Install Ktlint
+ - uses: nbadal/action-ktlint-setup@v1
+ with:
+ ktlint_version: 0.40.0
+
+ # Check formatting
+ - run: |
+ cd android
+ ktlint -a