Skip to content

Commit

Permalink
Update android.yml: Split tests into separate job
Browse files Browse the repository at this point in the history
Split tests into a separate job and run instrumentation test.
Run further tests even if previous tests failed
  • Loading branch information
renyuneyun committed Apr 30, 2022
1 parent 9738530 commit 5da42c2
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,27 @@ jobs:
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Generate coverage report

test:
needs: [build]
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: Generate unit test coverage report
run: ./gradlew jacocoTestReport
continue-on-error: true
- name: Run Android instrumentation tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: ./gradlew connectedCheck
continue-on-error: true
- name: Codecov
uses: codecov/codecov-action@v3.1.0

0 comments on commit 5da42c2

Please sign in to comment.