Skip to content

Commit

Permalink
As a developer I want to be able to run the UI tests in the CI enviro…
Browse files Browse the repository at this point in the history
…nment #242

Changed to ubuntu runner with KVM enabled.
  • Loading branch information
flauschtrud committed Dec 9, 2024
1 parent 5136794 commit f5d1c01
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@ on:
jobs:
build:
name: Test & Build
runs-on: macos-latest
runs-on: ubuntu-latest
timeout-minutes: 120

steps:
- 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
ls /dev/kvm
- name: Check Out Repository
uses: actions/checkout@v4

Expand All @@ -28,7 +36,7 @@ jobs:

- name: Run UI Tests
if: ${{ !contains(github.ref, 'l10n_master') }}
run: bash ./gradlew allDevicesFdroidDebugAndroidTest
run: bash ./gradlew allDevicesFdroidDebugAndroidTest -Pandroid.testoptions.manageddevices.emulator.gpu=swiftshader_indirect -Pandroid.experimental.testOptions.managedDevices.emulator.showKernelLogging=true -Pandroid.experimental.testOptions.managedDevices.maxConcurrentDevices=1 -Pandroid.experimental.testOptions.managedDevices.setupTimeoutMinutes=180

- name: Assemble App Debug APK
run: ./gradlew assembleDebug
Expand Down

0 comments on commit f5d1c01

Please sign in to comment.