mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
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:
parent
f2997e5c13
commit
6cfffdf52e
16
.github/workflows/format-check-dart.yml
vendored
16
.github/workflows/format-check-dart.yml
vendored
@ -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 ==="
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user