Skip to content

Commit 333c626

Browse files
trying to fix e2e test upload
1 parent e8d96d0 commit 333c626

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/e2e-tests.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,18 @@ jobs:
117117
mkdir -p example/maestro-output
118118
# Run tests (produce JUnit results) and capture artifacts under example/maestro-output
119119
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
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
122122
# If Maestro also wrote to the user home tests dir, copy those into the output dir for upload
123123
if [ -d "$HOME/.maestro/tests" ]; then
124124
mkdir -p example/maestro-output/.maestro-tests
125125
cp -r "$HOME/.maestro/tests/." example/maestro-output/.maestro-tests/ || true
126126
fi
127-
ls -la example/maestro-output || true
127+
echo "Listing example/maestro-output contents:"; ls -la example/maestro-output || true
128+
if [ -d example/maestro-output ]; then
129+
echo "Creating tarball example/maestro-output.tar.gz"
130+
tar -czf example/maestro-output.tar.gz -C example maestro-output || true
131+
fi
128132
ls -la example/ || true
129133
130134
- name: Upload Maestro test results
@@ -135,6 +139,7 @@ jobs:
135139
path: |
136140
example/maestro-results.xml
137141
example/maestro-output/
142+
example/maestro-output.tar.gz
138143
~/.maestro/tests/
139144
retention-days: 7
140145
if-no-files-found: warn

0 commit comments

Comments
 (0)