Skip to content

Dev: enable KVM

Dev: enable KVM #8

name: Pull Request Check
on: pull_request
jobs:
AndroidTest:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Enable KVM group perms
run: |

Check failure on line 17 in .github/workflows/pull-request-check.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pull-request-check.yml

Invalid workflow file

You have an error in your yaml syntax on line 17
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
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
cache: 'gradle'
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Run connected android tests
run: ./gradlew app:mvdApi34DebugAndroidTest --info
-Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect"
-Pandroid.experimental.testOptions.managedDevices.emulator.showKernelLogging=true
-Pandroid.experimental.androidTest.numManagedDeviceShards=1
-Pandroid.experimental.testOptions.managedDevices.maxConcurrentDevices=1
-Pandroid.experimental.testOptions.managedDevices.setupTimeoutMinutes=5
- name: Publish Report
uses: mikepenz/action-junit-report@v3
if: success() || failure() # always run even if the previous step fails
with:
report_paths: app/build/outputs/androidTest-results/managedDevice/**/*.xml
check_name: AndroidTestReport
detailed_summary: true
include_passed: true