Skip to content

Commit e4c4fbd

Browse files
committed
Enable adb screenrecord
1 parent 2e01fc9 commit e4c4fbd

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/integration-tests-ui-critical.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,24 @@ jobs:
137137
script: |
138138
adb uninstall io.sentry.uitest.android.critical || echo "Already uninstalled (or not found)"
139139
adb install -r -d "${{env.APK_NAME}}"
140+
141+
adb shell screenrecord --size 720x1280 --bit-rate 2000000 /sdcard/recording.mp4 &
142+
SCREENRECORD_PID=$!
143+
140144
maestro test "${{env.BASE_PATH}}/maestro" --debug-output "${{env.BASE_PATH}}/maestro-logs"
145+
MAESTRO_EXIT_CODE=$?
146+
147+
kill $SCREENRECORD_PID 2>/dev/null || true
148+
wait $SCREENRECORD_PID 2>/dev/null || true
149+
adb pull /sdcard/recording.mp4 "${{env.BASE_PATH}}/maestro-logs/recording.mp4"
150+
151+
exit $MAESTRO_EXIT_CODE
141152
142153
- name: Upload Maestro test results
143154
if: failure()
144155
uses: actions/upload-artifact@v6
145156
with:
146-
name: maestro-logs
157+
name: maestro-logs-${{ matrix.api-level }}-${{ matrix.arch }}-${{ matrix.target }}
147158
include-hidden-files: true # maestro debug logs are stored within maestro-logs/.maestro/
148159
path: "${{env.BASE_PATH}}/maestro-logs"
149160
retention-days: 1

0 commit comments

Comments
 (0)