Skip to content

Commit af7ed83

Browse files
committed
ci: add Metro health check to debug steps
1 parent 67e0294 commit af7ed83

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,10 @@ jobs:
387387
- name: Debug - Check for console logs
388388
if: failure() || cancelled()
389389
run: |
390+
echo "=== Metro health ==="
391+
curl -s --max-time 5 http://localhost:8081/status || echo "Metro not responding"
392+
echo "=== Metro process ==="
393+
lsof -i:8081 | head -5 || echo "Nothing on port 8081"
390394
echo "=== Simulator logs (last 5m) ==="
391395
xcrun simctl spawn booted log show --predicate 'processImagePath CONTAINS "RiveExample"' --last 5m --style compact 2>&1 | tail -200 || echo "No logs found"
392396
echo "=== System log for Metro/Node ==="
@@ -582,6 +586,10 @@ jobs:
582586
- name: Debug - Check for console logs
583587
if: failure()
584588
run: |
589+
echo "=== Metro health ==="
590+
curl -s --max-time 5 http://localhost:8081/status || echo "Metro not responding"
591+
echo "=== Metro process ==="
592+
lsof -i:8081 | head -5 || echo "Nothing on port 8081"
585593
echo "=== Checking simulator logs for errors ==="
586594
xcrun simctl spawn booted log show --predicate 'processImagePath CONTAINS "RiveExample"' --last 5m --style compact 2>&1 | tail -200 || echo "No logs found"
587595

0 commit comments

Comments
 (0)