Skip to content

Commit 0f0b4b3

Browse files
Create android_test_ci.yml
1 parent 20aaa3d commit 0f0b4b3

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/android_test_ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: "Android Instrumentation Tests"
2+
on: [ push, pull_request ]
3+
jobs:
4+
instrumentation_tests:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: checkout repository
8+
uses: actions/checkout@v4
9+
- name: set up JDK 21
10+
uses: actions/setup-java@v4
11+
with:
12+
distribution: 'zulu'
13+
java-version: '21'
14+
- name: set up Android SDK
15+
uses: android-actions/setup-android@v3
16+
- name: build APKs
17+
run: |
18+
./gradlew assembleDebug
19+
./gradlew assembleAndroidTest
20+
- name: run tests
21+
uses: emulator-wtf/run-tests@v0
22+
with:
23+
api-token: ${{ secrets.EW_API_TOKEN }}
24+
app: app/build/outputs/apk/debug/app-debug.apk
25+
test: app/build/outputs/apk/androidTest/app-debug-androidTest.apk
26+
outputs-dir: build/test-results
27+
- name: publish test results
28+
uses: mikepenz/action-junit-report@v5
29+
if: always()
30+
with:
31+
report_paths: 'build/test-results/**/*.xml'
32+

0 commit comments

Comments
 (0)