feat[build] :: add code generation and ignore generated files (#168) #1
This file contains hidden or 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
| --- | |
| # SPDX-License-Identifier: MIT | |
| # | |
| # Copyright 2025 bniladridas. All rights reserved. | |
| # Use of this source code is governed by a MIT license that can be | |
| # found in the LICENSE file. | |
| name: Flutter CI | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| jobs: | |
| test: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/actions/setup-flutter | |
| with: | |
| flutter-version: '3.38.3' | |
| - run: flutter pub get | |
| - name: Create .env file | |
| run: | | |
| { | |
| echo "FIREBASE_API_KEY=dummy_api_key" | |
| echo "FIREBASE_APP_ID=dummy_app_id" | |
| echo "FIREBASE_MESSAGING_SENDER_ID=dummy_sender_id" | |
| echo "FIREBASE_PROJECT_ID=dummy_project_id" | |
| echo "FIREBASE_STORAGE_BUCKET=dummy_storage_bucket" | |
| } > .env | |
| - run: flutter pub run build_runner build | |
| - run: flutter analyze | |
| - run: flutter test | |
| - run: flutter build macos 2>&1 | grep -v -E "(firebase_core|firebase_auth|firebase_app_check).*warning" |