Skip to content

Commit

Permalink
Run UI tests on linux with KVM (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
StefMa authored Apr 25, 2024
1 parent ef4a297 commit c4e4ea8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/test-lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
run: ./gradlew assembleDebug

instrumentationTest:
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
Expand All @@ -89,12 +89,16 @@ jobs:
distribution: 'adopt'
java-version: '17'

- 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: Run instrumentation tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
arch: x86_64
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
emulator-boot-timeout: 12000
script: ./gradlew :core:connectedAndroidTest

Expand Down

0 comments on commit c4e4ea8

Please sign in to comment.