-
Notifications
You must be signed in to change notification settings - Fork 13
49 lines (43 loc) · 1.2 KB
/
android_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Android Instrumentation Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
android_test:
name: Running Android Tests
runs-on: macos-13
continue-on-error: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'adopt'
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Start Android Emulator
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 26
target: default
arch: x86_64
profile: Nexus 4
emulator-options: -no-window -no-boot-anim -no-audio -no-snapshot-load
script: |
adb wait-for-device
adb shell input keyevent 82
./gradlew connectedAndroidTest --continue
- name: Upload Test Reports
if: failure()
uses: actions/upload-artifact@v4
with:
name: android-test-report
path: '**/build/reports/androidTests/connected/'