Check formatting of kotlin files in CI
This commit is contained in:
parent
cd713db029
commit
903296014a
1 changed files with 3 additions and 0 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -34,6 +34,9 @@ jobs:
|
||||||
path: ~/.gradle/caches
|
path: ~/.gradle/caches
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
|
||||||
restore-keys: ${{ runner.os }}-gradle
|
restore-keys: ${{ runner.os }}-gradle
|
||||||
|
|
||||||
|
- name: Check if kotlin files are formatted correctly
|
||||||
|
run: ./gradlew runKtlint
|
||||||
|
|
||||||
- name: Build debug APK and run jvm tests
|
- name: Build debug APK and run jvm tests
|
||||||
run: ./gradlew assembleDebug lintDebug testDebugUnitTest --stacktrace
|
run: ./gradlew assembleDebug lintDebug testDebugUnitTest --stacktrace
|
||||||
|
|
Loading…
Reference in a new issue