diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index c2b4d09ba..b650b0c6a 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -30,7 +30,6 @@ jobs: api-level: ${{ matrix.api-level }} arch: x86_64 script: bash contrib/instrumentation.sh - run: adb shell screencap -p /sdcard/screencap.png && adb pull /sdcard/screencap.png && find screencap.png - name: Upload screenshot result uses: actions/upload-artifact@v1 diff --git a/contrib/instrumentation.sh b/contrib/instrumentation.sh index 16fa304b9..a0ecff657 100644 --- a/contrib/instrumentation.sh +++ b/contrib/instrumentation.sh @@ -1,5 +1,8 @@ #!/usr/bin/env bash +adb shell screencap -p /sdcard/screencap.png +adb pull /sdcard/screencap.png +find screencap.png adb logcat -c adb logcat *:E -v color & ./gradlew jacocoInstrumentationTestReport