Update flow: Build CI on iOS Simulator #18
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: Run test | |
on: push | |
jobs: | |
build: | |
name: Test on iOS simulator | |
runs-on: macOS-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.1 | |
- name: Java setup | |
uses: actions/setup-java@v4.0.0 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
- name: Flutter setup | |
uses: subosito/flutter-action@v2.12.0 | |
with: | |
channel: 'stable' | |
- name: Create iOS simulator | |
uses: futureware-tech/simulator-action@v3 | |
with: | |
model: 'iPhone 14' | |
- run: flutter doctor -v | |
- run: flutter pub get | |
- run: flutter pub run build_runner build --delete-conflicting-outputs | |
- run: flutter test --flavor=dev | |
- run: flutter test integration_test --flavor=dev |