mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
ci: split gradle tasks and save reports
This commit is contained in:
parent
566fdd3344
commit
dc8c4a6c57
1 changed files with 23 additions and 7 deletions
30
.github/workflows/android.yml
vendored
30
.github/workflows/android.yml
vendored
|
|
@ -19,6 +19,9 @@ jobs:
|
|||
with:
|
||||
submodules: 'recursive'
|
||||
|
||||
- name: Validate Gradle wrapper
|
||||
uses: gradle/wrapper-validation-action@v1
|
||||
|
||||
- name: Mock files for CI
|
||||
run: |
|
||||
rm ./app/google-services.json
|
||||
|
|
@ -32,18 +35,31 @@ jobs:
|
|||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: '11'
|
||||
distribution: 'temurin'
|
||||
cache: gradle
|
||||
distribution: 'zulu'
|
||||
|
||||
- name: Validate Gradle wrapper
|
||||
uses: gradle/wrapper-validation-action@v1
|
||||
- name: Setup Gradle
|
||||
uses: gradle/gradle-build-action@v2
|
||||
|
||||
- name: Gradle build
|
||||
run: ./gradlew build
|
||||
- name: Check lint
|
||||
run: ./gradlew lintFdroidDebug lintGoogleDebug
|
||||
|
||||
- name: Upload debug APK
|
||||
- name: Build debug artifacts
|
||||
run: ./gradlew assembleDebug
|
||||
|
||||
- name: Run local tests
|
||||
run: ./gradlew testFdroidDebug testGoogleDebug
|
||||
|
||||
- name: Upload debug artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: fdroidDebug
|
||||
path: app/build/outputs/apk/fdroid/debug/app-fdroid-debug.apk
|
||||
retention-days: 30
|
||||
|
||||
- name: Upload build reports
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: build-reports
|
||||
path: app/build/reports
|
||||
retention-days: 30
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue