Skip to content

Commit 184d9e5

Browse files
committed
chore(ci): run adb as root in Android emulator during Detox tests
1 parent fb7a662 commit 184d9e5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,12 @@ jobs:
121121
avd-name: TestingAVD
122122
disable-animations: true
123123
script: |
124+
adb root
125+
adb wait-for-device
124126
adb shell setprop persist.sys.timezone "Europe/Prague"
127+
adb shell settings put global auto_time_zone 0
125128
adb shell am broadcast -a android.intent.action.TIMEZONE_CHANGED
129+
adb shell getprop persist.sys.timezone
126130
yarn detox:android:test:release
127131
- uses: actions/upload-artifact@v7
128132
if: failure()

0 commit comments

Comments
 (0)