From 3e88de9a2d5864fb706a65552ac6f0db1dcb5496 Mon Sep 17 00:00:00 2001 From: Jolanda Verhoef Date: Mon, 15 Nov 2021 09:07:05 +0100 Subject: [PATCH] [TestConfigurationSample] Provide emulator logs as artifact on failing build --- .github/workflows/TestConfigurationSample.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/TestConfigurationSample.yaml b/.github/workflows/TestConfigurationSample.yaml index 5e088fbcd..a6cde1ccf 100644 --- a/.github/workflows/TestConfigurationSample.yaml +++ b/.github/workflows/TestConfigurationSample.yaml @@ -109,3 +109,12 @@ jobs: with: name: test-reports path: ${{ env.SAMPLE_PATH }}/app/build/reports/androidTests + + - name: Upload emulator logs + if: failure() + uses: actions/upload-artifact@v2 + with: + name: emulator-logs + path: | + ${{ env.SAMPLE_PATH }}/app/build/outputs/androidTest-results/managedDevice/ + !{{ env.SAMPLE_PATH }}/**/*:*.xml