diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 3a61f7fe..399d7a77 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -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