[main ] jobs : test : runs-on : group: your-ubuntu-larger-runners-grou p steps : - name: Enable KVM group perm s run: | echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/ udev/rules.d/99-kvm4all.rule s sudo udevadm control --reload-rule s sudo udevadm trigger --name-match=kv m - name: Check ou t uses: actions/checkout@v 3 - name: Set up JD K uses: actions/setup-java@v 3 with : distribution: 'zulu ' java-version: 11
g - name: Set up Maestr o run: curl -Ls https://get.maestro.mobile.dev | bas h - name: Get apk pat h id: apk-pat h run: echo "path=$(find . -regex '^.*/build/outputs/apk/.*\.apk$' -type f | head -1)" >> $GITHUB_OUTPU T - name: Run Maestr o uses: reactivecircus/android-emulator-runner@v 2 with : api-level: 2 8 target: 'google_apis ' arch: 'x86 ' profile: 'pixel ' disable-animations: tru e script: | $ANDROID_HOME/platform-tools/adb install ${{ steps.apk-path.outputs.path } } ~/.maestro/bin/maestro test --format junit flow.yam l - name: Upload test resul t if: failure( ) uses: actions/upload-artifact@v 3 with : path: report.xml