Skip to content

Commit 2a4b086

Browse files
[TestConfigurationSample] Provide emulator logs as artifact on failing build
1 parent 5023df2 commit 2a4b086

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/TestConfigurationSample.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,13 @@ jobs:
109109
with:
110110
name: test-reports
111111
path: ${{ env.SAMPLE_PATH }}/app/build/reports/androidTests
112+
113+
- name: Upload emulator logs
114+
if: failure()
115+
uses: actions/upload-artifact@v2
116+
with:
117+
name: emulator-logs
118+
path: |
119+
${{ env.SAMPLE_PATH }}/app/build/outputs/androidTest-results/managedDevice/
120+
!${{ env.SAMPLE_PATH }}/**/*:*.xml
121+
!${{ env.SAMPLE_PATH }}/**/*|*

0 commit comments

Comments
 (0)