mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
Add debug workflow to investigate formatting differences
This commit is contained in:
parent
619c076da2
commit
88d6ccade2
90
.github/workflows/format-debug.yml
vendored
Normal file
90
.github/workflows/format-debug.yml
vendored
Normal file
@ -0,0 +1,90 @@
|
||||
name: Debug Formatting Issues
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
debug:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup clang-format
|
||||
run: ./formatters/setup-clang-format-docker.sh
|
||||
|
||||
- name: Install dotnet
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: "8.0.x"
|
||||
|
||||
- name: Install Node and dependencies
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "24"
|
||||
|
||||
- name: Install JDK
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
java-version: "16"
|
||||
|
||||
- name: Install Haxe
|
||||
uses: krdlab/setup-haxe@v1
|
||||
with:
|
||||
haxe-version: '4.3.2'
|
||||
- run: haxelib install formatter
|
||||
|
||||
- name: Install Dart
|
||||
uses: dart-lang/setup-dart@v1
|
||||
with:
|
||||
sdk: '3.8.1'
|
||||
|
||||
- name: Show environment info
|
||||
run: |
|
||||
echo "=== Dart Version ==="
|
||||
dart --version
|
||||
echo "=== Dart Format Version ==="
|
||||
dart format --version
|
||||
echo "=== Git Status Before ==="
|
||||
git status --porcelain
|
||||
echo "=== OS Info ==="
|
||||
uname -a
|
||||
lsb_release -a
|
||||
|
||||
- name: Show specific Flutter files before formatting
|
||||
run: |
|
||||
echo "=== Sample Flutter files before formatting ==="
|
||||
head -10 spine-flutter/lib/extensions.dart || echo "File not found"
|
||||
head -10 spine-flutter/lib/spine_dart.dart || echo "File not found"
|
||||
|
||||
- name: Run Dart formatter only
|
||||
run: |
|
||||
echo "=== Running Dart formatter ==="
|
||||
./formatters/format-dart.sh
|
||||
echo "=== Git status after Dart formatting ==="
|
||||
git status --porcelain
|
||||
echo "=== Modified files ==="
|
||||
git ls-files -m
|
||||
|
||||
- name: Show diff for first few files
|
||||
run: |
|
||||
echo "=== Showing diffs for first 3 modified files ==="
|
||||
for file in $(git ls-files -m | head -3); do
|
||||
echo "--- Diff for $file ---"
|
||||
git diff "$file" | head -50
|
||||
echo ""
|
||||
done
|
||||
|
||||
- name: Archive all diffs
|
||||
run: |
|
||||
git diff > all-format-diffs.txt
|
||||
git status --porcelain > git-status.txt
|
||||
|
||||
- name: Upload debug artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: format-debug-artifacts
|
||||
path: |
|
||||
all-format-diffs.txt
|
||||
git-status.txt
|
||||
Loading…
x
Reference in New Issue
Block a user