-- Force install Flutter 3.29 manually #22
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: FlutterJS CI | |
| on: | |
| push: | |
| branches: ["main", "master"] | |
| pull_request: | |
| branches: ["main", "master"] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| # --- Force install Flutter 3.29 manually --- | |
| - name: Install Flutter 3.29 | |
| run: | | |
| git clone https://github.com/flutter/flutter.git --depth 1 --branch 3.29.0 $HOME/flutter | |
| echo "$HOME/flutter/bin" >> $GITHUB_PATH | |
| # Verify correct version (CRITICAL) | |
| - name: Verify Flutter & Dart | |
| run: | | |
| which flutter | |
| flutter --version | |
| dart --version | |
| # Workspace pub get | |
| - name: Install dependencies | |
| run: flutter pub get | |
| - name: Verify formatting | |
| run: dart format --output=none --set-exit-if-changed . | |
| - name: Analyze project | |
| run: flutter analyze | |
| - name: Run tests | |
| run: flutter test |