Upload test report as artifact on failure (#2664)

This commit is contained in:
NGB-Was-Taken
2025-11-07 15:05:32 +05:45
committed by GitHub
parent 282110ef21
commit 9f9155121c

View File

@@ -48,8 +48,16 @@ jobs:
run: ./gradlew assembleRelease -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: Upload APK
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with: