Skip to content

Develop nullsafety (#130) #249

Develop nullsafety (#130)

Develop nullsafety (#130) #249

Workflow file for this run

name: Flutter drive
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
drive_ios:
runs-on: macos-latest
strategy:
matrix:
device: ["iPhone 8", "iPhone 13 Pro Max"]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: List all simulators
run: xcrun xctrace list devices
- name: Start Simulator
run: xcrun simctl boot "${{ matrix.device }}"
- uses: actions/checkout@v2
- name: Setup Flutter
uses: subosito/flutter-action@v2.7.1
with:
channel: "stable"
architecture: x64
- name: Run Flutter Driver tests
run: flutter drive --target=test_driver/app.dart
working-directory: example
drive_android:
runs-on: macos-latest
strategy:
matrix:
api-level: [21, 31]
arch: ["x86_64"]
target: [default]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
distribution: "adopt"
java-version: "11"
- name: Setup Flutter
uses: subosito/flutter-action@v2.7.1
with:
channel: "stable"
- name: Gradle cache
uses: gradle/gradle-build-action@v2.3.0
- name: AVD cache
uses: actions/cache@v3
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ matrix.api-level }}
- name: Run Flutter Driver tests
uses: reactiveCircus/android-emulator-runner@v2.25.0
with:
api-level: ${{ matrix.api-level }}
arch: ${{ matrix.arch }}
script: flutter drive --target=test_driver/app.dart
target: ${{ matrix.target }}
working-directory: ./example