mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-01 13:19:08 +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:
|
with:
|
||||||
sdk: '3.8.1'
|
sdk: '3.8.1'
|
||||||
|
|
||||||
|
- name: Setup Flutter
|
||||||
|
uses: subosito/flutter-action@v2
|
||||||
|
with:
|
||||||
|
flutter-version: 'stable'
|
||||||
|
|
||||||
- name: Check dart format version
|
- name: Check dart format version
|
||||||
run: |
|
run: |
|
||||||
dart format --version
|
dart format --version
|
||||||
@ -42,6 +47,17 @@ jobs:
|
|||||||
od -c "$f" | head -2
|
od -c "$f" | head -2
|
||||||
done
|
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
|
- name: Pre-format test
|
||||||
run: |
|
run: |
|
||||||
echo "=== Testing dart format behavior ==="
|
echo "=== Testing dart format behavior ==="
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user