Fix dart formatting issue by installing Flutter and resolving packages

The formatting discrepancy was caused by missing Flutter packages in CI.
When analysis_options.yaml references flutter_lints but packages aren't resolved,
dart format uses different formatting rules than when packages are available.
This commit is contained in:
Mario Zechner 2025-08-28 14:27:18 +02:00
parent f2997e5c13
commit 6cfffdf52e

View File

@ -15,6 +15,11 @@ jobs:
with:
sdk: '3.8.1'
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: 'stable'
- name: Check dart format version
run: |
dart format --version
@ -42,6 +47,17 @@ jobs:
od -c "$f" | head -2
done
- name: Install Flutter packages
run: |
echo "=== Installing packages for spine-flutter ==="
flutter pub get
echo "=== Installing packages for example ==="
cd example && flutter pub get
cd ..
echo "=== Installing packages for test ==="
cd test && flutter pub get
cd ..
- name: Pre-format test
run: |
echo "=== Testing dart format behavior ==="