File tree Expand file tree Collapse file tree 3 files changed +23
-3
lines changed Expand file tree Collapse file tree 3 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 19
19
required : false
20
20
type : string
21
21
default : " stable"
22
+ format_directories :
23
+ required : false
24
+ type : string
25
+ default : " ."
22
26
min_coverage :
23
27
required : false
24
28
type : number
73
77
run : ${{inputs.setup}}
74
78
75
79
- name : ✨ Check Formatting
76
- run : dart format --set-exit-if-changed .
80
+ run : dart format --set-exit-if-changed ${{inputs.format_directories}}
77
81
78
82
- name : 🕵️ Analyze
79
83
run : dart analyze --fatal-infos --fatal-warnings ${{inputs.analyze_directories}}
Original file line number Diff line number Diff line change 23
23
required : false
24
24
type : string
25
25
default : " "
26
+ format_directories :
27
+ required : false
28
+ type : string
29
+ default : " lib test"
26
30
min_coverage :
27
31
required : false
28
32
type : number
83
87
run : ${{inputs.setup}}
84
88
85
89
- name : ✨ Check Formatting
86
- run : dart format --set-exit-if-changed lib test
90
+ run : dart format --set-exit-if-changed ${{inputs.format_directories}}
87
91
88
92
- name : 🕵️ Analyze
89
93
run : flutter analyze ${{inputs.analyze_directories}}
Original file line number Diff line number Diff line change @@ -91,6 +91,12 @@ The Dart package workflow consists of the following steps:
91
91
92
92
**Default** `"lib test"`
93
93
94
+ # ### `format_directories`
95
+
96
+ **Optional** A space separated list of folders that should be formatted.
97
+
98
+ **Default** `"."`
99
+
94
100
# ### `check_ignore`
95
101
96
102
**Optional** Allows ignoring lines from [coverage][coverage].
@@ -159,6 +165,12 @@ The Flutter package workflow consists of the following steps:
159
165
160
166
**Default** `"lib test"`
161
167
168
+ # ### `format_directories`
169
+
170
+ **Optional** A space separated list of folders that should be formatted.
171
+
172
+ **Default** `"lib test"`
173
+
162
174
# ### `concurrency`
163
175
164
176
**Optional** The number of concurrent test suites run.
@@ -592,4 +604,4 @@ jobs:
592
604
[very_good_workflows_blog_link] : https://verygood.ventures/blog/configuring-workflows-for-your-flutter-projects?utm_source=github&utm_medium=readme&utm_campaign=workflows_readme
593
605
[commitizen] : https://github.com/commitizen/conventional-commit-types
594
606
[coverage] : https://pub.dev/packages/coverage
595
- [github_actions_secrets_docs] : https://docs.github.com/en/rest/actions/secrets
607
+ [github_actions_secrets_docs] : https://docs.github.com/en/rest/actions/secrets
You can’t perform that action at this time.
0 commit comments