Feature/sync upstream #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: integration test | |
on: [pull_request] | |
jobs: | |
drive_android: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: subosito/flutter-action@v2 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- 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 melos | |
run: | | |
flutter pub global activate melos | |
echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH | |
echo "$HOME/AppData/Local/Pub/Cache/bin" >> $GITHUB_PATH | |
- name: Initialize workspace through melos | |
run: melos bootstrap | |
- name: "Run Flutter Driver tests API 21" | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: 21 | |
target: default | |
arch: x86 | |
script: "cd example && flutter drive --target=test_driver/app.dart" | |
working-directory: ./flutter_secure_storage | |
- name: "Run Flutter Driver tests API 34" | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: 34 | |
target: google_apis | |
arch: x86_64 | |
script: "cd example && flutter drive --target=test_driver/app.dart" | |
working-directory: ./flutter_secure_storage |