0
0
mirror of https://github.com/thunderbird/thunderbird-android.git synced 2024-09-19 19:52:14 +02:00

Add ci gradle.properties and move quality checks to the start

This commit is contained in:
Wolf-Martell Montwé 2023-09-18 17:13:58 +02:00
parent 713ff9ea3b
commit d142bbef96
No known key found for this signature in database
GPG Key ID: 6D45B21512ACBF72
2 changed files with 22 additions and 5 deletions

6
.github/ci-gradle.properties vendored Normal file
View 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

View File

@ -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