Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions .github/workflows/maestro-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,9 @@ jobs:
while [ $ATTEMPT -le $MAX_RETRIES ]; do
echo "Attempt $ATTEMPT of $MAX_RETRIES"

echo "Starting screen recording..."
adb shell screenrecord /sdcard/test_run.mp4 > /dev/null 2>&1 &
RECORD_PID=$!

maestro test .maestro --exclude-tags=util --include-tags=test-$SHARD --format junit --output maestro-report.xml
TEST_EXIT_CODE=$?

echo "Stopping screen recording..."
kill -INT $RECORD_PID || true
sleep 2

echo "Pulling video from device..."
adb pull /sdcard/test_run.mp4 test_run_${SHARD}_attempt_${ATTEMPT}.mp4 || true
adb shell rm /sdcard/test_run.mp4 || true

if [ $TEST_EXIT_CODE -eq 0 ]; then
echo "Maestro passed on attempt $ATTEMPT"
FINAL_EXIT_CODE=0
Expand Down Expand Up @@ -119,12 +107,4 @@ jobs:
with:
name: Android Test Report - Shard ${{ inputs.shard }}
path: maestro-report.xml
retention-days: 7

- name: Upload Screen Recording
if: always()
uses: actions/upload-artifact@v4
with:
name: maestro-video-${{ inputs.shard }}
path: test_run_${{ inputs.shard }}_attempt_*.mp4
retention-days: 7