Skip to content

Commit 0e6e58a

Browse files
authored
Don't check the formatting of ffigened code (#1010)
1 parent 631d4ec commit 0e6e58a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/cupertino.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,14 @@ jobs:
3636
name: Install dependencies
3737
run: flutter pub get
3838
- 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
4047
if: always() && steps.install.outcome == 'success'
4148
- name: Analyze code
4249
run: flutter analyze --fatal-infos

0 commit comments

Comments
 (0)