Skip to content

Updates flutter and dart version and switches to null safety. #380

Updates flutter and dart version and switches to null safety.

Updates flutter and dart version and switches to null safety. #380

Workflow file for this run

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: flutter 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.3.9'
architecture: x64
# channel: "stable"
- run: flutter pub get
- run: flutter 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