Skip to content

Android Test

Android Test #127

Workflow file for this run

name: Android Test
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
pull_request:
branches:
- main
jobs:
android_test:
runs-on: ubuntu-latest
strategy:
matrix:
api-level: [23]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: set up JDK 17
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 17
- name: Make gradlew executable
run: chmod +x gradlew
- 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
- uses: gradle/actions/setup-gradle@v3
- name: Run Tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
arch: ${{ matrix.api-level == 23 && 'x86' || 'x86_64' }}
script: ./gradlew connectedCheck --stacktrace
env:
API_LEVEL: ${{ matrix.api-level }}