Simplify/fix dart formatting in CI

This commit is contained in:
Ian VanSchooten 2024-09-27 14:15:54 -04:00
parent 4403fef32e
commit 0556ff612e
2 changed files with 2 additions and 12 deletions

View File

@ -1,10 +0,0 @@
#!/bin/sh
DIRS="lib test"
EXIT=0
for DIR in $DIRS; do
OUT="$(dart format -l 120 --suppress-analytics "$DIR" | sed -e "s/^Formatted \(.*\)/::error file=$DIR\/\1::Not formatted/g")"
echo "$OUT" | grep "::error" && EXIT=1
done
exit $EXIT

View File

@ -23,5 +23,5 @@ jobs:
- name: Check out code
uses: actions/checkout@v3
- name: flutter format
run: $GITHUB_WORKSPACE/.github/workflows/flutterfmt.sh
- name: Check formating
run: dart format -l120 lib/ test/ --set-exit-if-changed --suppress-analytics