Skip to content

Commit 5da42c2

Browse files
committed
Update android.yml: Split tests into separate job
Split tests into a separate job and run instrumentation test. Run further tests even if previous tests failed
1 parent 9738530 commit 5da42c2

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/android.yml

+21-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,27 @@ jobs:
2424
run: chmod +x gradlew
2525
- name: Build with Gradle
2626
run: ./gradlew build
27-
- name: Generate coverage report
27+
28+
test:
29+
needs: [build]
30+
runs-on: macos-latest
31+
32+
steps:
33+
- uses: actions/checkout@v3
34+
- name: set up JDK 11
35+
uses: actions/setup-java@v3
36+
with:
37+
java-version: '11'
38+
distribution: 'temurin'
39+
cache: gradle
40+
- name: Generate unit test coverage report
2841
run: ./gradlew jacocoTestReport
42+
continue-on-error: true
43+
- name: Run Android instrumentation tests
44+
uses: reactivecircus/android-emulator-runner@v2
45+
with:
46+
api-level: 29
47+
script: ./gradlew connectedCheck
48+
continue-on-error: true
2949
- name: Codecov
3050
uses: codecov/[email protected]

0 commit comments

Comments
 (0)