Skip to content

Commit 814dd79

Browse files
committed
CI: Install app after the emulator being created...
1 parent 6184d83 commit 814dd79

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/android.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,17 @@ jobs:
2929
sudo udevadm trigger --name-match=kvm
3030
- name: Build app
3131
run: ./gradlew clean build
32-
- name: Prepare app for instrumented tests
33-
run: |
34-
adb install -r -t app/build/outputs/apk/debug/app-debug.apk
35-
adb shell am start -n com.readrops.app.debug/com.readrops.app.MainActivity
36-
adb shell settings put global zen_mode 0
37-
adb shell pm grant com.readrops.app.debug android.permission.POST_NOTIFICATIONS
38-
adb shell pm grant com.readrops.app android.permission.POST_NOTIFICATIONS
39-
- name: Android Emulator Runner
32+
- name: Run instrumented tests in emulator
4033
uses: ReactiveCircus/android-emulator-runner@v2.33.0
4134
with:
4235
api-level: 34
43-
script: ./gradlew connectedCheck jacocoFullReport
36+
script: |
37+
adb install -r -t app/build/outputs/apk/debug/app-debug.apk
38+
adb shell am start -n com.readrops.app.debug/com.readrops.app.MainActivity
39+
adb shell settings pu t global zen_mode 0
40+
adb shell pm grant com.readrops.app.debug android.permission.POST_NOTIFICATIONS
41+
adb shell pm grant com.readrops.app android.permission.POST_NOTIFICATIONS
42+
./gradlew connectedCheck jacocoFullReport
4443
- uses: codecov/codecov-action@v4
4544
with:
4645
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)