Skip to content

Commit c1c92c9

Browse files
add artifact test reports and publish unit test results
1 parent ffa4468 commit c1c92c9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/android_ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ jobs:
1616
run: bash ./gradlew lintDebug --stacktrace
1717
- name: unit tests
1818
run: bash ./gradlew testDebugUnitTest --stacktrace
19+
- name: artifact test reports
20+
if: failure()
21+
uses: actions/upload-artifact@v4
22+
with:
23+
name: test-report
24+
path: app/build/reports/tests/testDebugUnitTest/
25+
- name: publish unit test results
26+
uses: EnricoMi/publish-unit-test-result-action@v2
27+
with:
28+
files: app/build/test-results/testDebugUnitTest/*.xml
1929
- name: coverage
2030
run: bash ./gradlew jacocoTestCoverageVerification --stacktrace
2131
- name: artifact reports

0 commit comments

Comments
 (0)