Skip to content

Commit

Permalink
Upload maestro artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
stalgiag committed Jan 8, 2025
1 parent 8a530c7 commit 06421fd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/android-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,13 @@ jobs:
- name: Run Android Build and Tests
run: bash tests/test-android.sh

- name: Upload Maestro artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: maestro-artifacts
path: |
~/.maestro/tests/
/home/runner/.maestro/tests/
/home/runner/.maestro/logs/
14 changes: 13 additions & 1 deletion tests/test-android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,19 @@ adb install "$APK_PATH"
log_subsection "Starting Expo server..."
yarn expo start &
EXPO_PID=$!
sleep 5

log_subsection "Waiting for Expo server to be ready..."
for i in {1..30}; do
if curl -s http://localhost:8081/status | grep -q "packager-status:running"; then
echo "✅ Expo server is ready"
break
fi
echo "Waiting for Expo server... (attempt $i)"
sleep 2
done

log_subsection "Waiting for app to initialize..."
sleep 30

log_subsection "Running Maestro tests..."
maestro test ./tests/*.yaml
Expand Down

0 comments on commit 06421fd

Please sign in to comment.