Skip to content

Commit 6bb2984

Browse files
committed
test: add Android instrumented test on CI script
1 parent df522cb commit 6bb2984

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/CI.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,17 @@ jobs:
2727
- name: Grant execute permission for gradlew
2828
run: chmod +x gradlew
2929

30-
- name: Run unit test, lint check and build
31-
run: ./gradlew test lintDebug assembleDebug
30+
- name: Setup Android emulator
31+
uses: reactivecircus/android-emulator-runner@v2
32+
with:
33+
api-level: 33
34+
script: |
35+
echo "Emulator started!"
36+
37+
- name: Run tests, lint check and build
38+
run: ./gradlew test connectedAndroidTest lintDebug assembleDebug
3239

33-
- name: Upload Lint Report Artifact
40+
- name: Upload lint report artifact
3441
if: always()
3542
uses: actions/upload-artifact@v4
3643
with:

0 commit comments

Comments
 (0)