17
17
18
18
steps :
19
19
- uses : actions/checkout@v4
20
+ with :
21
+ fetch-depth : 1 # Use shallow clone for faster checkout
20
22
21
23
- name : Check broken links
22
24
uses : JustinBeckwith/linkinator-action@v1
@@ -29,10 +31,19 @@ jobs:
29
31
distribution : ' zulu'
30
32
java-version : ' 11'
31
33
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
+
32
40
- name : Flutter action
33
41
uses : subosito/flutter-action@v2
34
42
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
36
47
37
48
- name : Install dependencies
38
49
run : flutter pub get
@@ -51,25 +62,17 @@ jobs:
51
62
flutter build ios --debug --no-codesign
52
63
53
64
- 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 }}
55
68
with :
56
69
files : coverage/lcov.info
57
70
flags : unittests
58
71
name : form_builder_phone_field
59
72
60
73
deployment :
61
- if : ${{ github.ref_type == 'tag' }}
62
- needs : build
63
- name : Deploy package
64
74
permissions :
65
75
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