testing-workflows #3
Workflow file for this run
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: Android Integration Tests | ||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '11' | ||
- name: Set up Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: '3.22.1' | ||
- 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: Install dependencies | ||
run: flutter pub get | ||
working-directory: ./integrationtestapp | ||
- name: Run Android tests | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
with: | ||
api-level: 33 | ||
target: google_apis | ||
arch: x86_64 | ||
profile: Nexus 6 | ||
script: flutter drive --target=integration_test/magic_link_test.dart -d android | ||
working-directory: ./integrationtestapp | ||
Check failure on line 44 in .github/workflows/android-integration-tests.yml GitHub Actions / Android Integration TestsInvalid workflow file
Check failure on line 44 in .github/workflows/android-integration-tests.yml GitHub Actions / Android Integration TestsInvalid workflow file
|