-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Prettier to "format" check (#86)
- Loading branch information
1 parent
419c75c
commit 88799d4
Showing
2 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,9 +49,15 @@ jobs: | |
with: | ||
sdk: beta | ||
|
||
- name: Format | ||
- name: Install Prettier | ||
run: npm install --global [email protected] | ||
|
||
- name: Format (Dart) | ||
run: dart format --set-exit-if-changed $(find lib -name "*.dart" -not \( -name "*.*freezed.dart" -o -name "*.*g.dart" \) ) | ||
|
||
- name: Format (Prettier) | ||
run: prettier . --check | ||
|
||
test: | ||
# We need to use macOS because of the golden tests, see | ||
# https://github.com/flutter/flutter/issues/36667#issuecomment-521335243. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
macos/Pods/** | ||
macos/Runner/** | ||
build/** |