File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments