Skip to content

Commit 1fcd4a7

Browse files
committed
.yml updates
1 parent 3777202 commit 1fcd4a7

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/e2e-detox-android.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,25 @@ jobs:
8787
emulator-options: >-
8888
-no-window -no-audio -no-boot-anim -gpu swiftshader_indirect
8989
-camera-back none -camera-front none
90+
-no-snapshot -no-snapshot-save -wipe-data
9091
disable-animations: true
9192
script: |
93+
adb kill-server || true
94+
adb start-server || true
95+
adb wait-for-device || true
9296
adb devices
97+
98+
for i in {1..150}; do
99+
state="$(adb get-state 2>dev/null || true)"
100+
boot="$(adb shell getprop sys.boot_completed 2>dev/null | tr -d '\r' || true)"
101+
echo "adb_state=${state}, boot_completed=${boot}"
102+
if [ "${state}" = "device" ] && [ "${boot}" = "1" ]; then
103+
echo "Emulator is ready"
104+
break
105+
fi
106+
sleep 2
107+
done
108+
93109
adb shell getprop sys.boot_completed || true
94110
adb shell settings put global window_animation_scale 0 || true
95111
adb shell settings put global transition_animation_scale 0 || true

.github/workflows/e2e-detox-ios.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ jobs:
6363
pod install --repo-update
6464
fi
6565
66+
cd ..
67+
6668
echo "------ workspaces -------"
6769
ls -la ios/*.xcworkspace || true
6870

0 commit comments

Comments
 (0)