diff --git a/.github/workflows/android-ci.yml b/.github/workflows/android-ci.yml index dc426afd..4a2f4408 100644 --- a/.github/workflows/android-ci.yml +++ b/.github/workflows/android-ci.yml @@ -26,7 +26,7 @@ jobs: instrumentation-tests: name: Instrumentation Tests - runs-on: macos-latest + runs-on: ubuntu-latest timeout-minutes: 30 strategy: # Allow tests to continue on other devices if they fail on one device. @@ -45,13 +45,20 @@ jobs: java-version: 17 distribution: 'temurin' + - name: Enable KVM group perms + run: | + echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules + sudo udevadm control --reload-rules + sudo udevadm trigger --name-match=kvm + - name: Instrumentation Tests uses: reactivecircus/android-emulator-runner@v2 with: api-level: ${{ matrix.api-level }} target: google_apis arch: x86_64 - script: adb logcat *:S TestRunner:V & ./gradlew connectedCheck --no-build-cache --no-daemon --stacktrace + disable-animations: true + script: ./gradlew connectedCheck --no-build-cache --no-daemon --stacktrace instrumentation-test-summary: if: ${{ always() }}