Skip to content

Commit 4d49bec

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

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,15 @@ jobs:
119119
with:
120120
api-level: 29
121121
avd-name: TestingAVD
122+
profile: pixel_6_pro
122123
disable-animations: true
123124
script: |
125+
adb root
126+
adb wait-for-device
124127
adb shell setprop persist.sys.timezone "Europe/Prague"
128+
adb shell settings put global auto_time_zone 0
125129
adb shell am broadcast -a android.intent.action.TIMEZONE_CHANGED
130+
adb shell getprop persist.sys.timezone
126131
yarn detox:android:test:release
127132
- uses: actions/upload-artifact@v7
128133
if: failure()

0 commit comments

Comments
 (0)