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