fix: correct flutter test command and add apk build step #3
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
| name: Flutter CI | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| jobs: | |
| build: | |
| name: Build & Verify | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Setup Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: "stable" | |
| cache: true | |
| - name: Install Dependencies | |
| run: flutter pub get | |
| - name: Static Analysis | |
| run: flutter analyze --fatal-warnings | |
| - name: Run Unit Tests | |
| run: flutter test | |
| - name: Build Release APK | |
| run: flutter build apk --release |