From 067c24b9c37f2fa376d71ff7fc4c50a85165a594 Mon Sep 17 00:00:00 2001 From: Niedermann IT-Dienstleistungen Date: Sat, 18 Apr 2020 13:20:29 +0200 Subject: Instrumented tests ci (#386) * Trial and error - add instrumented tests to CI * Trial and error - add instrumented tests to CI Setup AVD * Trial and error - add instrumented tests to CI Fix action version * Try API level 27 for AVD https://github.com/ReactiveCircus/android-emulator-runner/issues/45 * Try API level 29 for AVD on macos-latest image https://github.com/ReactiveCircus/android-emulator-runner/issues/45 * Explicitly watch instrumented test fail * Fix instrumented tests and prepare merge into master --- .github/workflows/android.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index ccf380909..5700a0dce 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -10,7 +10,7 @@ jobs: - uses: gradle/wrapper-validation-action@v1 test: - name: Run Unit Tests + name: Unit tests runs-on: ubuntu-18.04 steps: @@ -22,6 +22,22 @@ jobs: - name: Unit tests run: bash ./gradlew test --stacktrace + instrumented: + name: Android instrumented tests + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + - name: set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Android instrumented tests + uses: reactivecircus/android-emulator-runner@v2 + with: + api-level: 29 + script: ./gradlew connectDevDebugAndroidTest --stacktrace + apk: name: Generate APK runs-on: ubuntu-18.04 -- cgit v1.2.3