Skip to content

Commit 8ea3cb4

Browse files
committed
Add UI test in ci.yaml
1 parent 0b583d5 commit 8ea3cb4

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

.github/workflows/ci.yaml

+30-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ jobs:
1313
name: Build and Unit test
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v3
16+
- name: Checkout
17+
uses: actions/checkout@v3
1718

1819
- name: Setup JDK 17
1920
uses: actions/setup-java@v3
@@ -30,3 +31,31 @@ jobs:
3031

3132
- name: Build with Gradle
3233
run: ./gradlew build
34+
35+
ui-test:
36+
name: UI tests on Android (API level ${{ matrix.api-level }})
37+
runs-on: macos-latest
38+
strategy:
39+
matrix:
40+
api-level: [ 26, 28, 34 ]
41+
steps:
42+
- name: Checkout
43+
uses: actions/checkout@v3
44+
45+
- name: Setup JDK 17
46+
uses: actions/setup-java@v3
47+
with:
48+
java-version: '17'
49+
distribution: 'temurin'
50+
cache: gradle
51+
52+
- name: Setup Android SDK
53+
uses: android-actions/setup-android@v2
54+
55+
- name: UI test
56+
uses: reactivecircus/android-emulator-runner@v2
57+
with:
58+
api-level: ${{ matrix.api-level }}
59+
disable-animations: true
60+
arch: x86_64
61+
script: ./gradlew connectedCheck

0 commit comments

Comments
 (0)