Merge pull request #5 from ntaworking/develop #20
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: | |
branches: | |
- staging | |
jobs: | |
if_merged: | |
if: github.event.pull_request.merged == true | |
name: Test on iOS simulator | |
runs-on: macOS-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Java setup | |
uses: actions/[email protected] | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
- name: Flutter setup | |
uses: subosito/[email protected] | |
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 |