@@ -18,58 +18,17 @@ concurrency:
1818
1919jobs :
2020 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
2527
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
6928
7029 deployment :
7130 permissions :
7231 id-token : write
7332 uses : flutter-form-builder-ecosystem/.github/.github/workflows/deployment.yaml@main
7433 if : ${{ github.ref_type == 'tag' }}
75- needs : build
34+ needs : [ build, example]
0 commit comments