Skip to content

Add widget for flashlight #229

Add widget for flashlight

Add widget for flashlight #229

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
id: testing
uses: reactivecircus/android-emulator-runner@v2
continue-on-error: true
with:
api-level: ${{ matrix.api-level }}
arch: ${{ matrix.api-level == 23 && 'x86' || 'x86_64' }}
script: |
adb logcat -c
touch app/emulator.log
chmod 777 app/emulator.log
adb logcat >> app/emulator.log &
./gradlew connectedCheck
env:
API_LEVEL: ${{ matrix.api-level }}
- name: Upload Test Results
if: steps.testing.outcome != 'success'
uses: actions/upload-artifact@v3
with:
name: logs
path: app/emulator.log
- name: Raise error on test failure
if: steps.testing.outcome != 'success'
run: exit 1