|
| 1 | +# This workflow tests the Flutter build reproduction steps |
| 2 | + |
| 3 | +name: Flutter Build Reproduction Test |
| 4 | + |
| 5 | +on: |
| 6 | + workflow_dispatch: |
| 7 | + |
| 8 | +jobs: |
| 9 | + test-build-reproduction: |
| 10 | + name: Test Dev Environment Setup (Linux) |
| 11 | + runs-on: ubuntu-latest |
| 12 | + |
| 13 | + steps: |
| 14 | + - name: Checkout repository |
| 15 | + uses: actions/checkout@v4 |
| 16 | + |
| 17 | + - name: Setup Dart |
| 18 | + uses: dart-lang/setup-dart@v1 |
| 19 | + |
| 20 | + - name: Install FVM |
| 21 | + run: dart pub global activate fvm |
| 22 | + |
| 23 | + - name: Add FVM to PATH |
| 24 | + run: echo "$HOME/.pub-cache/bin" >> $GITHUB_PATH |
| 25 | + shell: bash |
| 26 | + |
| 27 | + - name: Install Flutter version from .fvm/fvm_config.json |
| 28 | + run: fvm install |
| 29 | + |
| 30 | + - name: Use FVM Flutter |
| 31 | + run: fvm use --force |
| 32 | + |
| 33 | + - name: Verify Flutter version |
| 34 | + run: fvm flutter --version |
| 35 | + |
| 36 | + - name: Flutter doctor |
| 37 | + run: fvm flutter doctor -v |
| 38 | + |
| 39 | + - name: Get dependencies |
| 40 | + run: fvm flutter pub get |
| 41 | + |
| 42 | + - name: Verify dependencies |
| 43 | + run: fvm flutter pub deps |
| 44 | + |
| 45 | + - name: Run code analysis |
| 46 | + run: fvm flutter analyze |
| 47 | + continue-on-error: false |
| 48 | + |
| 49 | + - name: Run tests |
| 50 | + run: fvm flutter test |
| 51 | + continue-on-error: false |
| 52 | + |
| 53 | + - name: Check formatting |
| 54 | + run: fvm flutter format --set-exit-if-changed . |
| 55 | + continue-on-error: false |
| 56 | + |
| 57 | + - name: Build Android APK |
| 58 | + run: fvm flutter build apk --debug |
| 59 | + continue-on-error: false |
| 60 | + |
| 61 | + - name: Summary |
| 62 | + if: always() |
| 63 | + run: | |
| 64 | + echo "✅ Build reproduction test completed" |
0 commit comments