🔖 v3.0.0 #100
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 CI | |
# This workflow is triggered on pushes to the repository. | |
on: | |
push: | |
branches: | |
- develop | |
- master | |
- 2x | |
pull_request: | |
branches: | |
- develop | |
- 2x | |
# on: push # Default will running for every branch. | |
jobs: | |
build: | |
# This job will run on macos virtual machine | |
runs-on: macos-latest | |
steps: | |
# Setup Java environment in order to build the Android app. | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: '11.x' | |
# Setup the flutter environment. | |
- uses: subosito/flutter-action@v1 | |
with: | |
channel: 'stable' # 'dev', 'alpha', default to: 'stable' | |
# Get flutter dependencies. | |
- run: dart pub get | |
# Check for any formatting issues in the code. | |
- run: dart format --set-exit-if-changed . | |
# Statically analyze the Dart code for any errors. | |
- run: dart analyze . | |
##### | |
# Build app | |
##### | |
# Build apk. | |
- run: cd example && flutter build apk | |
# Build ios | |
- run: cd example && flutter build ios --release --no-codesign |