@@ -120,18 +120,33 @@ jobs:
120120 maestro test ./example/maestro/ --format junit --output example/maestro-results.xml --debug-output example/maestro-output/debug --test-output-dir example/maestro-output/debug || true
121121 # Attempt to record each Flow file individually (maestro record accepts a single flow file)
122122 bash -lc 'for f in ./example/maestro/*.yaml ./example/maestro/*.yml ./example/maestro/*.flow; do if [ -f "$f" ]; then echo "Recording $f"; maestro record --local "$f" "example/maestro-output/$(basename "$f").mp4" --debug-output example/maestro-output/debug || echo "record failed for $f"; fi; done' || true
123- # If Maestro wrote to the user home tests dir, copy those into the output dir for upload
124- if [ -d "$HOME/.maestro/tests" ]; then
125- mkdir -p example/maestro-output/.maestro-tests
126- rsync -a "$HOME/.maestro/tests/" example/maestro-output/.maestro-tests/ || true
127- fi
128123 echo "Listing example/maestro-output contents:"; ls -la example/maestro-output || true
129124 if [ -d example/maestro-output ]; then
130125 echo "Creating tarball example/maestro-output.tar.gz"
131126 tar -czf example/maestro-output.tar.gz -C example maestro-output || true
132127 fi
133128 ls -la example/ || true
134129
130+ - name : Collect Maestro artifacts
131+ if : always()
132+ run : |
133+ echo "Waiting for recordings to flush"
134+ sleep 2
135+ sync || true
136+ mkdir -p example/maestro-output/.maestro-tests
137+ if [ -d "$HOME/.maestro/tests" ]; then
138+ echo "Copying $HOME/.maestro/tests -> example/maestro-output/.maestro-tests/"
139+ rsync -a "$HOME/.maestro/tests/" example/maestro-output/.maestro-tests/ || true
140+ else
141+ echo "No $HOME/.maestro/tests directory found"
142+ fi
143+ echo "Listing example/maestro-output contents:"; ls -la example/maestro-output || true
144+ if [ -d example/maestro-output ]; then
145+ echo "Creating tarball example/maestro-output.tar.gz"
146+ tar -czf example/maestro-output.tar.gz -C example maestro-output || true
147+ fi
148+ ls -la example/ || true
149+
135150 - name : Upload Maestro test results
136151 if : always()
137152 uses : actions/upload-artifact@v4
0 commit comments