File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,13 +116,19 @@ jobs:
116116 adb install example/android/app/build/outputs/apk/debug/app-debug.apk
117117 mkdir -p example/maestro-output
118118 # Run tests (produce JUnit results) and capture artifacts under example/maestro-output
119- maestro test ./example/maestro/ --format junit --output example/maestro-results.xml || true
120- # Run record to capture screenshots & artifacts into the output directory (use --local to render a video file)
121- maestro record --local ./example/maestro/ example/maestro-output/recording.mp4 || true
122- # If Maestro also wrote to the user home tests dir, copy those into the output dir for upload
119+ mkdir -p example/maestro-output/debug
120+ maestro test ./example/maestro/ --format junit --output example/maestro-results.xml --debug-output example/maestro-output/debug || true
121+ # Attempt to record each Flow file individually (maestro record accepts a single flow file)
122+ for f in ./example/maestro/*.yaml ./example/maestro/*.yml ./example/maestro/*.flow; do
123+ if [ -f "$f" ]; then
124+ echo "Recording $f"
125+ maestro record --local "$f" "example/maestro-output/$(basename "$f").mp4" --debug-output example/maestro-output/debug || echo "record failed for $f"
126+ fi
127+ done
128+ # If Maestro wrote to the user home tests dir, copy those into the output dir for upload
123129 if [ -d "$HOME/.maestro/tests" ]; then
124130 mkdir -p example/maestro-output/.maestro-tests
125- cp -r "$HOME/.maestro/tests/. " example/maestro-output/.maestro-tests/ || true
131+ rsync -a "$HOME/.maestro/tests/" example/maestro-output/.maestro-tests/ || true
126132 fi
127133 echo "Listing example/maestro-output contents:"; ls -la example/maestro-output || true
128134 if [ -d example/maestro-output ]; then
You can’t perform that action at this time.
0 commit comments