diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 834833c..18ba02e 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -25,13 +25,23 @@ jobs: COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} run: "./gradlew coveralls" androidTest: - runs-on: macOS-latest + runs-on: ubuntu-latest + strategy: + matrix: + api-level: [ 34 ] steps: - uses: actions/checkout@v4 + - name: Enable KVM + 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: Gradle cache + uses: gradle/actions/setup-gradle@v3 - name: Instrumentation Tests uses: reactivecircus/android-emulator-runner@v2 with: - api-level: 34 - arch: x86 + api-level: ${{ matrix.api-level }} + emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none disable-animations: true script: ./gradlew connectedAndroidTest --stacktrace