From 48e1ab7a3e03d39f50e68788748a583595925699 Mon Sep 17 00:00:00 2001 From: Satoshi Otomakan Date: Wed, 25 Oct 2023 15:40:03 +0200 Subject: [PATCH] [CI]: Try to use reactivecircus/android-emulator-runner@v2 --- .github/workflows/android-ci.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/android-ci.yml b/.github/workflows/android-ci.yml index d5f055c53e3..30ce47ab76e 100644 --- a/.github/workflows/android-ci.yml +++ b/.github/workflows/android-ci.yml @@ -52,7 +52,7 @@ jobs: - name: Install internal dependencies run: tools/install-dependencies android -# if: steps.internal_cache.outputs.cache-hit != 'true' + if: steps.internal_cache.outputs.cache-hit != 'true' - name: Generate files run: tools/generate-files android @@ -60,8 +60,22 @@ jobs: - name: Build Kotlin doc run: tools/kotlin-doc - - name: Run test - run: tools/android-test + - name: Build tests + run: | + cd android + ./gradlew assembleAndroidTest + + - name: Run tests + uses: reactivecircus/android-emulator-runner@v2 + with: + api-level: 26 + target: google_apis + arch: x86 + ndk: 23.1.7779620 + cmake: 3.18.1 + script: | + cd android + ./gradlew connectedAndroidTest - name: Build sample app run: tools/samples-build android