test #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
workflow_dispatch: | |
inputs: | |
android-api-level: | |
description: Android API Level | |
required: true | |
type: number | |
default: 35 | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup Java JDK | |
uses: actions/[email protected] | |
with: | |
distribution: 'microsoft' | |
java-version: '21' | |
- name: Build with Gradle | |
uses: gradle/actions/[email protected] | |
- 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 | |
- name: Android Emulator Runner | |
uses: ReactiveCircus/[email protected] | |
with: | |
api-level: ${{ github.event.inputs.android-api-level }} | |
arch: x86_64 | |
script: ./gradlew connectedDebugAndroidTest testDebugUnitTest | |
- name: Test Summary Action | |
uses: jeantessier/[email protected] |