Skip to content

Commit 3983f2f

Browse files
authored
chore: save test reports on failure (#168)
1 parent d5fe30f commit 3983f2f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/test.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,15 @@ jobs:
133133
adb logcat | grep EppoSDK >> app/emulator.log & # pipe all logcat messages into log file as a background process
134134
./gradlew connectedCheck --no-daemon -Pandroid.testInstrumentationRunnerArguments.TEST_DATA_BRANCH=${{ env.TEST_DATA_BRANCH }} # run tests
135135
136+
- name: Store reports on failure
137+
if: failure()
138+
uses: actions/upload-artifact@v4
139+
with:
140+
name: reports
141+
path: |
142+
**/build/reports/
143+
**/build/test-results/
144+
136145
- name: Upload Emulator Logs
137146
if: always()
138147
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)