Skip to content

Commit e8d96d0

Browse files
attempting to upload screenshots
1 parent afdd9a2 commit e8d96d0

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

.github/workflows/e2e-tests.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,18 @@ jobs:
114114
disable-animations: true
115115
script: |
116116
adb install example/android/app/build/outputs/apk/debug/app-debug.apk
117-
mkdir -p maestro-output
118-
maestro test ./example/maestro/ --format junit --output maestro-results.xml || true
119-
maestro record ./example/maestro/ --output maestro-output/ || maestro test ./example/maestro/
120-
test -f maestro-results.xml && mv maestro-results.xml example/ || echo "No results file"
121-
test -d maestro-output && mv maestro-output example/ || echo "No maestro output directory"
122-
ls -la example/
117+
mkdir -p example/maestro-output
118+
# 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
121+
maestro record ./example/maestro/ --output example/maestro-output/ || true
122+
# If Maestro also wrote to the user home tests dir, copy those into the output dir for upload
123+
if [ -d "$HOME/.maestro/tests" ]; then
124+
mkdir -p example/maestro-output/.maestro-tests
125+
cp -r "$HOME/.maestro/tests/." example/maestro-output/.maestro-tests/ || true
126+
fi
127+
ls -la example/maestro-output || true
128+
ls -la example/ || true
123129
124130
- name: Upload Maestro test results
125131
if: always()

0 commit comments

Comments
 (0)