Updates flutter and dart version and switches to null safety. #382
Workflow file for this run
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 | |
on: | |
push: | |
branches: [main, development] | |
pull_request: | |
branches: [main, development] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
platform: [windows-latest, ubuntu-latest, macos-latest] | |
runs-on: ${{matrix.platform}} | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: "12.x" | |
- uses: subosito/flutter-action@v2 | |
with: | |
# Temporary fix to failing CI | |
flutter-version: '3.16.4' | |
architecture: x64 | |
# channel: "stable" | |
- run: flutter pub get | |
- run: dart format . --set-exit-if-changed | |
- run: flutter analyze . | |
- run: flutter test | |
build: | |
strategy: | |
matrix: | |
platform: [windows-latest, macos-latest, ubuntu-latest] | |
runs-on: ${{matrix.platform}} | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: "12.x" | |
- uses: subosito/flutter-action@v2 | |
with: | |
# Temporary fix to failing CI | |
flutter-version: '3.16.4' | |
architecture: x64 | |
# channel: "stable" | |
- run: flutter pub get | |
- run: dart format . --set-exit-if-changed | |
- run: flutter analyze . | |
- run: flutter test | |
# - run: flutter build apk | |
# - uses: actions/upload-artifact@v1 | |
# with: | |
# name: release-apk | |
# path: build/app/outputs/apk/release/app-release.apk |