@@ -20,55 +20,35 @@ jobs:
20
20
build :
21
21
name : Build package & run tests
22
22
runs-on : ubuntu-latest
23
-
24
23
steps :
25
24
- name : Checkout repository
26
25
uses : actions/checkout@v4
27
26
with :
28
27
fetch-depth : 1 # Use shallow clone for faster checkout
29
-
30
28
- name : Check broken links
31
29
uses : JustinBeckwith/linkinator-action@v1
32
30
with :
33
31
paths : " **/*.md"
34
-
35
- - name : Get Flutter version by FVM
36
- uses : kuhnroyal/flutter-fvm-config-action@v3
37
- id : fvm-config-action
32
+ - name : Setup Flutter
33
+ uses : kuhnroyal/flutter-fvm-config-action/setup@v3
38
34
with :
39
- path : " .fvmrc"
40
- flavor : " stable"
41
-
42
- - name : Set up Flutter
43
- uses : subosito/flutter-action@v2
44
- with :
45
- flutter-version : ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
46
- channel : ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
47
- architecture : x64
48
- cache : true
49
-
35
+ path : ' .fvmrc'
36
+ flavor : ' stable'
50
37
- name : Install dependencies
51
38
run : dart pub get
52
-
53
39
- name : Run l10n
54
40
run : flutter gen-l10n
55
-
56
41
- name : Run l10n on example
57
42
run : flutter gen-l10n
58
43
working-directory : example
59
-
60
44
- name : Format code
61
45
run : dart format --set-exit-if-changed $(find . -name "*.dart" ! \( -wholename "./lib/localization/intl/*" -or -wholename "./example/lib/localization/intl/*" \))
62
-
63
46
- name : Analyze static code
64
47
run : dart analyze
65
-
66
48
- name : Run tests
67
49
run : flutter test --no-pub --coverage
68
-
69
50
- name : Check publish warnings
70
51
run : dart pub publish --dry-run
71
-
72
52
- name : Upload coverage to Codecov
73
53
uses : codecov/codecov-action@v4
74
54
env :
@@ -81,78 +61,30 @@ jobs:
81
61
example :
82
62
name : Build example app
83
63
runs-on : ubuntu-latest
84
-
85
64
steps :
86
65
- name : Checkout repository
87
66
uses : actions/checkout@v4
88
67
with :
89
68
fetch-depth : 1 # Use shallow clone for faster checkout
90
-
91
- - name : Get Flutter version by FVM
92
- uses : kuhnroyal/flutter-fvm-config-action@v3
93
- id : fvm-config-action
94
- with :
95
- path : " .fvmrc"
96
- flavor : " stable"
97
-
98
- - name : Set up Flutter
99
- uses : subosito/flutter-action@v2
69
+ - name : Setup Flutter
70
+ uses : kuhnroyal/flutter-fvm-config-action/setup@v3
100
71
with :
101
- flutter-version : ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
102
- channel : ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
103
- architecture : x64
104
- cache : true
105
-
72
+ path : ' .fvmrc'
73
+ flavor : ' stable'
106
74
- name : Install dependencies
107
75
run : dart pub get
108
-
109
76
- name : Run l10n
110
77
run : flutter gen-l10n
111
-
112
78
- name : Run l10n on example
113
79
run : flutter gen-l10n
114
80
working-directory : example
115
-
116
81
- name : Build example
117
82
run : flutter build appbundle --debug
118
83
working-directory : example
119
84
120
85
deployment :
121
86
if : ${{ github.ref_type == 'tag' }}
122
- needs : [build, example]
123
- name : Deploy package
87
+ uses : flutter-form-builder-ecosystem/.github/.github/workflows/deployment.yaml@main
124
88
permissions :
125
89
id-token : write
126
- runs-on : ubuntu-latest
127
- steps :
128
- - name : Checkout repository
129
- uses : actions/checkout@v4
130
- with :
131
- fetch-depth : 1 # Use shallow clone for faster checkout
132
-
133
- - name : Set up Dart
134
- uses : dart-lang/setup-dart@v1
135
-
136
- - name : Get Flutter version by FVM
137
- uses : kuhnroyal/flutter-fvm-config-action@v3
138
- id : fvm-config-action
139
- with :
140
- path : " .fvmrc"
141
- flavor : " stable"
142
-
143
- - name : Set up Flutter
144
- uses : subosito/flutter-action@v2
145
- with :
146
- flutter-version : ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
147
- channel : ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
148
- architecture : x64
149
- cache : true
150
-
151
- - name : Install dependencies
152
- run : dart pub get
153
-
154
- - name : Run l10n
155
- run : flutter gen-l10n
156
-
157
- - name : Publish package
158
- run : dart pub publish -v -f
90
+ needs : [build, example]
0 commit comments