File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments