kopia lustrzana https://github.com/ge0rg/aprsdroid
Save test reports on failure and upload APK on success
rodzic
98c7b56ca1
commit
a87f955126
|
@ -5,6 +5,7 @@ on:
|
||||||
branches: [ '**' ]
|
branches: [ '**' ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ '**' ]
|
branches: [ '**' ]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
compile:
|
compile:
|
||||||
|
@ -75,6 +76,13 @@ jobs:
|
||||||
run: ./gradlew lint --stacktrace
|
run: ./gradlew lint --stacktrace
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: Upload reports
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: Unit Test Reports
|
||||||
|
path: build/outputs/reports
|
||||||
|
if: ${{ failure() }}
|
||||||
|
|
||||||
instrumentation:
|
instrumentation:
|
||||||
name: "Testing on API ${{ matrix.api-level }} for ${{ matrix.target }}"
|
name: "Testing on API ${{ matrix.api-level }} for ${{ matrix.target }}"
|
||||||
needs: compile
|
needs: compile
|
||||||
|
@ -83,7 +91,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
api-level: [ 15, 19, 24, 30 ]
|
api-level: [ 15, 20, 24, 30 ]
|
||||||
target: [ default, google_apis ]
|
target: [ default, google_apis ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -114,3 +122,10 @@ jobs:
|
||||||
arch: x86
|
arch: x86
|
||||||
profile: Nexus 6
|
profile: Nexus 6
|
||||||
script: ./gradlew connectedCheck --stacktrace
|
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' }}
|
||||||
|
|
|
@ -8,7 +8,7 @@ messages.
|
||||||
|
|
||||||
APRSdroid is Open Source Software written in Scala and licensed under the GPLv2.
|
APRSdroid is Open Source Software written in Scala and licensed under the GPLv2.
|
||||||
|
|
||||||

|
[](../../actions/workflows/android.yml)
|
||||||
|
|
||||||
Quick links:
|
Quick links:
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue