Skip to content

chore: fix/update example & integration CI #265

chore: fix/update example & integration CI

chore: fix/update example & integration CI #265

Workflow file for this run

name: integration test
on: [ pull_request ]
jobs:
drive_android:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- api-level: 21
target: default
arch: x86
- api-level: 34
target: google_apis
arch: x86_64
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- 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
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
arch: ${{ matrix.arch }}
script: flutter drive --target=test_driver/app.dart
working-directory: flutter_secure_storage/example
drive_ios:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: "stable"
- 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
- uses: futureware-tech/simulator-action@v3
with:
os: iOS
os_version: 17.5
model: "iPhone 15"
- name: Run Flutter Driver tests
working-directory: flutter_secure_storage/example
run: flutter drive --target=test_driver/app.dart