File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 36
36
name : Install dependencies
37
37
run : flutter pub get
38
38
- name : Check formatting
39
- run : dart format --output=none --set-exit-if-changed .
39
+ # Don't lint the generated file native_cupertino_bindings.dart
40
+ # This approach is simpler than using `find` and excluding that file
41
+ # because `dart format` also excludes other file e.g. ones in
42
+ # directories start with '.'.
43
+ run : >
44
+ mv lib/src/native_cupertino_bindings.dart lib/src/native_cupertino_bindings.tmp &&
45
+ dart format --output=none --set-exit-if-changed . &&
46
+ mv lib/src/native_cupertino_bindings.tmp lib/src/native_cupertino_bindings.dart
40
47
if : always() && steps.install.outcome == 'success'
41
48
- name : Analyze code
42
49
run : flutter analyze --fatal-infos
You can’t perform that action at this time.
0 commit comments