Add ci gradle.properties and move quality checks to the start
This commit is contained in:
parent
713ff9ea3b
commit
d142bbef96
2 changed files with 22 additions and 5 deletions
6
.github/ci-gradle.properties
vendored
Normal file
6
.github/ci-gradle.properties
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
org.gradle.daemon=false
|
||||
org.gradle.parallel=true
|
||||
org.gradle.workers.max=2
|
||||
|
||||
kotlin.incremental=false
|
||||
kotlin.compiler.execution.strategy=in-process
|
21
.github/workflows/android.yml
vendored
21
.github/workflows/android.yml
vendored
|
@ -21,18 +21,29 @@ jobs:
|
|||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 90
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Copy CI gradle.properties
|
||||
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
|
||||
|
||||
- uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: 17
|
||||
|
||||
- uses: gradle/gradle-build-action@v2
|
||||
|
||||
- name: Quality - Spotless
|
||||
run: ./gradlew spotlessCheck
|
||||
|
||||
- name: Quality - Detekt
|
||||
run: ./gradlew detekt
|
||||
|
||||
- name: Build
|
||||
run: ./gradlew assembleDebug
|
||||
- name: Detekt
|
||||
run: ./gradlew detekt
|
||||
- name: Spotless
|
||||
run: ./gradlew spotlessCheck
|
||||
- name: Tests
|
||||
|
||||
- name: Test
|
||||
run: ./gradlew testsOnCi
|
||||
|
|
Loading…
Reference in a new issue