Skip to content

Commit

Permalink
Update Android instrumentation tests step
Browse files Browse the repository at this point in the history
Using Ubuntu build machine instead of macOS,
which is significantly faster to spin up.
https://github.com/ReactiveCircus/android-emulator-runner
for more details about Android emulator test GitHub action config.
  • Loading branch information
vgaidarji committed Mar 18, 2024
1 parent 586a113 commit 03440ab
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 03440ab

Please sign in to comment.