Skip to content

Commit b833244

Browse files
committed
Try to enable notifications in CI before running instrumented tests
1 parent 7e26838 commit b833244

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/android.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ jobs:
2929
uses: ReactiveCircus/android-emulator-runner@v2.33.0
3030
with:
3131
api-level: 29
32+
pre-emulator-launch-script: |
33+
adb shell settings put global zen_mode 0
34+
adb shell pm grant com.readrops.app android.permission.POST_NOTIFICATIONS
35+
adb shell input keyevent KEYCODE_WAKEUP
36+
adb shell wm dismiss-keyguard
37+
adb shell input keyevent KEYCODE_MENU
3238
script: ./gradlew clean build connectedCheck jacocoFullReport
3339
- uses: codecov/codecov-action@v4
3440
with:

0 commit comments

Comments
 (0)