Upload test report as artifact on failure (mihonapp/mihon#2664)

(cherry picked from commit 9f9155121cb2fa75c9b2c9a2796f3a1dac6b15e7)
This commit is contained in:
NGB-Was-Taken 2025-11-07 15:05:32 +05:45 committed by Cuong-Tran
parent b927dd2fed
commit 1a40ab5114
No known key found for this signature in database
GPG key ID: 94EFFE320FE7A47C
2 changed files with 16 additions and 0 deletions

View file

@ -77,8 +77,16 @@ jobs:
run: ./gradlew assemblePreview
- name: Run unit tests
id: unit_tests
run: ./gradlew testReleaseUnitTest
- name: Upload test report
if: steps.unit_tests.outcome == 'failure'
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: test-report-${{ github.sha }}
path: app/build/reports/tests/testReleaseUnitTest
- name: Sign APK
if: github.repository == github.event.pull_request.head.repo.full_name
uses: r0adkll/sign-android-release@f30bdd30588842ac76044ecdbd4b6d0e3e813478

View file

@ -61,8 +61,16 @@ jobs:
run: ./gradlew assemblePreview -Pinclude-telemetry -Penable-updater
- name: Run unit tests
id: unit_tests
run: ./gradlew testReleaseUnitTest
- name: Upload test report
if: steps.unit_tests.outcome == 'failure'
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: test-report-${{ github.sha }}
path: app/build/reports/tests/testReleaseUnitTest
- name: Sign APK
uses: r0adkll/sign-android-release@f30bdd30588842ac76044ecdbd4b6d0e3e813478
with: