Save test reports on failure and upload APK on success

pull/315/head
Loren M. Lang 2022-01-02 20:56:55 -08:00
rodzic 98c7b56ca1
commit a87f955126
2 zmienionych plików z 17 dodań i 2 usunięć

Wyświetl plik

@ -5,6 +5,7 @@ on:
branches: [ '**' ]
pull_request:
branches: [ '**' ]
workflow_dispatch:
jobs:
compile:
@ -75,6 +76,13 @@ jobs:
run: ./gradlew lint --stacktrace
continue-on-error: true
- name: Upload reports
uses: actions/upload-artifact@v2
with:
name: Unit Test Reports
path: build/outputs/reports
if: ${{ failure() }}
instrumentation:
name: "Testing on API ${{ matrix.api-level }} for ${{ matrix.target }}"
needs: compile
@ -83,7 +91,7 @@ jobs:
strategy:
fail-fast: false
matrix:
api-level: [ 15, 19, 24, 30 ]
api-level: [ 15, 20, 24, 30 ]
target: [ default, google_apis ]
steps:
@ -114,3 +122,10 @@ jobs:
arch: x86
profile: Nexus 6
script: ./gradlew connectedCheck --stacktrace
- name: Save successful debug APK
uses: actions/upload-artifact@v2
with:
name: debug apk
path: build/outputs/debug/aprsdroid-debug.apk
if: ${{ matrix.api-level == 30 && matrix.target == 'google_apis' }}

Wyświetl plik

@ -8,7 +8,7 @@ messages.
APRSdroid is Open Source Software written in Scala and licensed under the GPLv2.
![Android CI](../../actions/workflows/android/badge.svg)
[![Android CI](../../actions/workflows/android.yml/badge.svg)](../../actions/workflows/android.yml)
Quick links: