File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646 key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
4747 restore-keys : ${{ runner.os }}-gradle
4848
49- - name : Check if kotlin files are formatted correctly
50- run : ./gradlew runKtlint
51-
5249 - name : Build debug APK and run jvm tests
53- run : ./gradlew assembleDebug lintDebug testDebugUnitTest --stacktrace
50+ run : ./gradlew assembleDebug lintDebug testDebugUnitTest --stacktrace -DskipFormatKtlint
5451
5552 - name : Upload APK
5653 uses : actions/upload-artifact@v2
Original file line number Diff line number Diff line change @@ -165,7 +165,10 @@ task formatKtlint(type: JavaExec) {
165165}
166166
167167afterEvaluate {
168- preDebugBuild. dependsOn formatKtlint, runCheckstyle, runKtlint
168+ if (! System . properties. containsKey(' skipFormatKtlint' )) {
169+ preDebugBuild. dependsOn formatKtlint
170+ }
171+ preDebugBuild. dependsOn runCheckstyle, runKtlint
169172}
170173
171174sonarqube {
You can’t perform that action at this time.
0 commit comments