Remove ProviderScope.parent in favor of UncontrolledProviderScope #25
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: Build | |
on: | |
push: | |
branches: [master, main] | |
paths-ignore: | |
- "**.md" | |
pull_request: | |
paths-ignore: | |
- "**.md" | |
jobs: | |
build: | |
name: Run flutter test and analyze | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Flutter environment | |
uses: subosito/flutter-action@v2.10.0 | |
with: | |
channel: "stable" | |
- name: Setup Firebase | |
shell: bash | |
env: | |
FIREBASE_OPTIONS: ${{ secrets.FIREBASE_OPTIONS }} | |
ANDROID_GOOGLE_SERVICE: ${{ secrets.ANDROID_GOOGLE_SERVICE }} | |
IOS_GOOGLE_SERVICE: ${{ secrets.IOS_GOOGLE_SERVICE }} | |
run: | | |
echo "$FIREBASE_OPTIONS" > lib/firebase_options.dart | |
dart format lib/firebase_options.dart --line-length=100 | |
echo "$ANDROID_GOOGLE_SERVICE" > android/app/google-services.json | |
echo "$IOS_GOOGLE_SERVICE" > ios/Runner/GoogleService-Info.plist | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Verify formatting | |
run: | | |
find . -name "*.dart" \ | |
! -name "*.g.dart" \ | |
! -name "*.freezed.dart" \ | |
! -name "app_localizations*.dart" \ | |
! -path "*/gen/*" \ | |
! -name "firebase_options*.dart" \ | |
| xargs dart format --output=none --set-exit-if-changed --line-length=100 | |
# Consider passing '--fatal-infos' for slightly stricter analysis. | |
- name: Run flutter analyze | |
run: flutter analyze | |
- name: Run tests | |
run: flutter test |