Skip to content

Commit

Permalink
Only upload test reports on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
penguin359 committed Jan 5, 2022
1 parent 70d2d55 commit 03b59cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
with:
name: Unit Test Reports
path: build/reports
if: always()
if: failure()

intrumentation:
name: "Testing on API ${{ matrix.api-level }} for ${{ matrix.target }}"
Expand Down Expand Up @@ -155,11 +155,11 @@ jobs:
with:
name: Instrument Test Reports API ${{ matrix.api-level }} ${{ matrix.target }}
path: build/reports
if: always()
if: failure()

- name: Save successful debug APK
uses: actions/upload-artifact@v2
with:
name: debug apk
name: Debug APK
path: build/outputs/apk/debug/aprsdroid-debug.apk
if: matrix.api-level == 31 && matrix.target == 'google_apis'

0 comments on commit 03b59cf

Please sign in to comment.