Skip to content

Commit 35744af

Browse files
fix: metro start
1 parent a8f0ee5 commit 35744af

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/e2e-android.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ jobs:
6161
sudo apt update
6262
sudo apt-get install -y libpulse0 libgl1 libxkbfile1
6363
64-
- name: Build Android app
65-
working-directory: apps/${{ env.WORKING_DIRECTORY }}/android
66-
run: ./gradlew assembleDebug
64+
# - name: Build Android app
65+
# working-directory: apps/${{ env.WORKING_DIRECTORY }}/android
66+
# run: ./gradlew assembleDebug
6767

6868
- name: Enable KVM
6969
run: |
@@ -110,19 +110,17 @@ jobs:
110110
avd-name: e2e_emulator
111111
arch: x86_64
112112
script: |
113-
cd apps/${{ env.WORKING_DIRECTORY }}
114113
# Start Metro in the background
115-
E2E=true yarn start &> output.log &
114+
E2E=true yarn --cwd apps/${{ env.WORKING_DIRECTORY }} start &> output.log &
116115
# Wait for emulator to boot fully
117116
$ANDROID_HOME/platform-tools/adb wait-for-device
118117
$ANDROID_HOME/platform-tools/adb shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done;'
119118
# Install the app APK
120-
$ANDROID_HOME/platform-tools/adb install -r android/app/build/outputs/apk/debug/app-debug.apk
119+
$ANDROID_HOME/platform-tools/adb install -r apps/${{ env.WORKING_DIRECTORY }}/android/app/build/outputs/apk/debug/app-debug.apk
121120
# Launch the app using bash
122121
bash -c 'until $ANDROID_HOME/platform-tools/adb shell monkey -p com.paperexample 1 | grep -q "Events injected: 1"; do sleep 1; echo "Retrying app launch..."; done'
123122
124123
# Run your E2E tests
125-
cd ../..
126124
E2E=true yarn e2e
127125
128126
# - name: Start Metro server

0 commit comments

Comments
 (0)