Skip to content

Commit

Permalink
add screen recording
Browse files Browse the repository at this point in the history
  • Loading branch information
pyricau committed Sep 7, 2024
1 parent be2569c commit 9f8d2c6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,19 @@ jobs:
chmod 777 emulator.log # allow writing to log file
adb logcat >> emulator.log & # pipe all logcat messages into log file as a background process
adb shell settings put global package_verifier_user_consent -1
adb shell "screenrecord --bugreport /data/local/tmp/testRecording.mp4 & echo \$! > /data/local/tmp/screenrecord_pid.txt" &
./gradlew connectedCheck --no-build-cache --no-daemon --stacktrace
adb shell "kill -2 \$(cat /data/local/tmp/screenrecord_pid.txt)"
sleep 1
adb pull /data/local/tmp/testRecording.mp4 .
- name: Upload results
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.api-level }}-${{ matrix.arch }}-instrumentation-test-results
path: |
emulator.log
testRecording.mp4
./**/build/reports/androidTests/connected/**
snapshot-deployment:
Expand Down

0 comments on commit 9f8d2c6

Please sign in to comment.