Skip to content

Merge pull request #65 from plaidev/flutter-e2e #147

Merge pull request #65 from plaidev/flutter-e2e

Merge pull request #65 from plaidev/flutter-e2e #147

Workflow file for this run

name: "[android] Test Nativebrik SDK"
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup jdk
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '21'
- name: unit test
working-directory: android
run: ./gradlew testDebugUnitTest
- name: enable KVM
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 test
uses: ReactiveCircus/android-emulator-runner@v2
with:
working-directory: android
api-level: 34
target: google_apis
arch: x86_64
script: ./gradlew connectedCheck