mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 23:34:53 +08:00
Add more debugging to understand dart format behavior
This commit is contained in:
parent
c95341ec2b
commit
f2997e5c13
18
.github/workflows/format-check-dart.yml
vendored
18
.github/workflows/format-check-dart.yml
vendored
@ -42,6 +42,24 @@ jobs:
|
||||
od -c "$f" | head -2
|
||||
done
|
||||
|
||||
- name: Pre-format test
|
||||
run: |
|
||||
echo "=== Testing dart format behavior ==="
|
||||
cd spine-flutter
|
||||
echo "=== Testing with --output show ==="
|
||||
dart format --page-width 120 --output show example/lib/dress_up.dart | head -60 | tail -10
|
||||
echo "=== Testing with --output none (dry run) ==="
|
||||
dart format --page-width 120 --output none example/lib/dress_up.dart && echo "No changes needed" || echo "Would format"
|
||||
echo "=== Current file hash before format ==="
|
||||
shasum example/lib/dress_up.dart
|
||||
echo "=== Copy and format test file ==="
|
||||
cp example/lib/dress_up.dart /tmp/test_dress_up.dart
|
||||
dart format --page-width 120 /tmp/test_dress_up.dart
|
||||
echo "=== Hash after format ==="
|
||||
shasum /tmp/test_dress_up.dart
|
||||
echo "=== Show diff if any ==="
|
||||
diff -u example/lib/dress_up.dart /tmp/test_dress_up.dart | head -30 || true
|
||||
|
||||
- name: Format Dart
|
||||
run: ./formatters/format-dart.sh
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user