1717
1818 steps :
1919 - uses : actions/checkout@v4
20+ with :
21+ fetch-depth : 1 # Use shallow clone for faster checkout
2022
2123 - name : Check broken links
2224 uses : JustinBeckwith/linkinator-action@v1
@@ -29,10 +31,19 @@ jobs:
2931 distribution : ' zulu'
3032 java-version : ' 11'
3133
34+ - name : Get Flutter version by FVM
35+ uses : kuhnroyal/flutter-fvm-config-action@v2
36+ id : fvm-config-action
37+ with :
38+ path : " .fvmrc"
39+
3240 - name : Flutter action
3341 uses : subosito/flutter-action@v2
3442 with :
35- channel : ' stable'
43+ flutter-version : ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
44+ channel : ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
45+ architecture : x64
46+ cache : true
3647
3748 - name : Install dependencies
3849 run : flutter pub get
@@ -51,25 +62,17 @@ jobs:
5162 flutter build ios --debug --no-codesign
5263
5364 - name : Upload coverage to Codecov
54- uses : codecov/codecov-action@v3
65+ uses : codecov/codecov-action@v4
66+ env :
67+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
5568 with :
5669 files : coverage/lcov.info
5770 flags : unittests
5871 name : form_builder_phone_field
5972
6073 deployment :
61- if : ${{ github.ref_type == 'tag' }}
62- needs : build
63- name : Deploy package
6474 permissions :
6575 id-token : write
66- runs-on : ubuntu-latest
67- steps :
68- - uses : actions/checkout@v4
69- - uses : dart-lang/setup-dart@v1
70- - name : Flutter action
71- uses : subosito/flutter-action@v2
72- with :
73- channel : ' stable'
74- - name : Publish package
75- run : dart pub publish -v -f
76+ uses : flutter-form-builder-ecosystem/.github/.github/workflows/deployment.yaml@main
77+ if : ${{ github.ref_type == 'tag' }}
78+ needs : build
0 commit comments