@@ -18,58 +18,17 @@ concurrency:
18
18
19
19
jobs :
20
20
build :
21
- runs-on : macos-latest
22
- strategy :
23
- matrix :
24
- flutter-version : [stable, beta]
21
+ uses : flutter-form-builder-ecosystem/.github/.github/workflows/minimal-quality.yaml@main
22
+ with :
23
+ codecov-name : flutter_form_builder
24
+ enable-fix-tests : true
25
+ example :
26
+ uses : flutter-form-builder-ecosystem/.github/.github/workflows/build-examples.yaml@main
25
27
26
- steps :
27
- - uses : actions/checkout@v4
28
- with :
29
- fetch-depth : 1 # Use shallow clone for faster checkout
30
-
31
- - name : Check broken links
32
- uses : JustinBeckwith/linkinator-action@v1
33
- with :
34
- paths : " **/*.md"
35
-
36
- - name : Setup Java
37
- uses : actions/setup-java@v4
38
- with :
39
- distribution : ' zulu'
40
- java-version : ' 17'
41
- - name : Setup Flutter
42
- uses : kuhnroyal/flutter-fvm-config-action/setup@v3
43
- with :
44
- path : ' .fvmrc'
45
- flavor : ${{ matrix.flutter-version }}
46
- - name : Install dependencies
47
- run : flutter pub get
48
- - name : Format code
49
- run : dart format --set-exit-if-changed lib/ test/ example/
50
- - name : Analyze static code
51
- run : flutter analyze
52
- - name : Run tests
53
- run : flutter test --coverage
54
- - name : Run fixes tests
55
- run : dart fix --compare-to-golden test_fixes/
56
- - name : Upload coverage to Codecov
57
- uses : codecov/codecov-action@v5
58
- with :
59
- files : coverage/lcov.info
60
- name : flutter_form_builder
61
- - name : Check publish warnings
62
- run : dart pub publish --dry-run
63
- - name : Build example
64
- run : |
65
- cd example
66
- flutter build appbundle --debug
67
- flutter build ios --debug --no-codesign
68
- flutter build web
69
28
70
29
deployment :
71
30
permissions :
72
31
id-token : write
73
32
uses : flutter-form-builder-ecosystem/.github/.github/workflows/deployment.yaml@main
74
33
if : ${{ github.ref_type == 'tag' }}
75
- needs : build
34
+ needs : [ build, example]
0 commit comments