[BROWSERTACK-GITHUB-ACTION] Create Android tests github action #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android tests | |
on: [pull_request] | |
jobs: | |
test: | |
runs-on: macos-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: temurin | |
cache: 'gradle' | |
- name: Run unit test | |
run: ./gradlew testDebugUnitTest --stacktrace --no-daemon | |
- name: Run android test | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: 29 | |
script: ./gradlew :core:connectedDebugAndroidTest | |
- name: Jacoco report | |
run: ./gradlew jacocoReport --stacktrace --no-daemon |