[Issue #120] fix conflict between the naming of material.SearchBar an… #245
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: 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/[email protected] | |
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/[email protected] | |
with: | |
channel: "stable" | |
- name: Gradle cache | |
uses: gradle/[email protected] | |
- 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/[email protected] | |
with: | |
api-level: ${{ matrix.api-level }} | |
arch: ${{ matrix.arch }} | |
script: flutter drive --target=test_driver/app.dart | |
target: ${{ matrix.target }} | |
working-directory: ./example |