blob: 6b5c7bbdfd0311c50d364c197ba7f870afd1220f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
|