Skip to content

Commit 3096815

Browse files
fix: app launch
1 parent 6ee8f6c commit 3096815

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/e2e-android.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,9 @@ jobs:
118118
$ANDROID_HOME/platform-tools/adb shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done;'
119119
# Install the app APK
120120
$ANDROID_HOME/platform-tools/adb install -r android/app/build/outputs/apk/debug/app-debug.apk
121-
# Launch the app
122-
until $ANDROID_HOME/platform-tools/adb shell monkey -p com.example 1 | grep -q "Events injected: 1"; do
123-
sleep 1
124-
echo "Retrying app launch..."
125-
done
121+
# Launch the app using bash
122+
bash -c 'until $ANDROID_HOME/platform-tools/adb shell monkey -p com.example 1 | grep -q "Events injected: 1"; do sleep 1; echo "Retrying app launch..."; done'
123+
126124
# Run your E2E tests
127125
cd ../..
128126
E2E=true yarn e2e

0 commit comments

Comments
 (0)