mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
[formatters] Remove debug logs from GH workflow
This commit is contained in:
parent
81b445302a
commit
33b760966f
51
.github/workflows/format-check-new.yml
vendored
51
.github/workflows/format-check-new.yml
vendored
@ -11,23 +11,6 @@ jobs:
|
||||
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Check pre-installed versions
|
||||
run: |
|
||||
echo "=== Pre-installed tool versions ==="
|
||||
echo "clang-format versions available:"
|
||||
apt list clang-format* 2>/dev/null | grep clang-format || true
|
||||
echo ""
|
||||
echo "Default clang-format:"
|
||||
which clang-format || echo "Not found"
|
||||
clang-format --version || echo "Not installed"
|
||||
echo ""
|
||||
echo "Dart:"
|
||||
which dart || echo "Not found"
|
||||
dart --version || echo "Not installed"
|
||||
|
||||
# clang-format-18 is already pre-installed on Ubuntu 24.04
|
||||
# No need to install it
|
||||
|
||||
- name: Install dotnet
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
@ -54,48 +37,20 @@ jobs:
|
||||
- name: Install Dart
|
||||
uses: dart-lang/setup-dart@v1
|
||||
with:
|
||||
sdk: '3.7.2'
|
||||
sdk: '3.8.1'
|
||||
|
||||
- name: Debug formatter versions
|
||||
- name: Check dart format version
|
||||
run: |
|
||||
echo "=== Tool versions ==="
|
||||
echo "clang-format version:"
|
||||
clang-format --version
|
||||
echo "clang-format-18 version:"
|
||||
clang-format-18 --version
|
||||
echo "clang-format path:"
|
||||
which clang-format
|
||||
which clang-format-18
|
||||
echo ""
|
||||
echo "dart version:"
|
||||
dart --version
|
||||
echo "dart format help:"
|
||||
dart format --help | grep -A2 -B2 "page-width" || true
|
||||
echo ""
|
||||
echo "Testing clang-format behavior:"
|
||||
echo 'class Test { Test() {}; };' | clang-format --style=file:formatters/.clang-format
|
||||
echo 'class Test { Test() {}; };' | clang-format-18 --style=file:formatters/.clang-format
|
||||
echo ""
|
||||
echo "Testing dart format behavior:"
|
||||
echo 'final x = SpineWidgetController(onInitialized: (c) {print("test");});' | dart format --page-width 120
|
||||
dart format --version
|
||||
|
||||
- name: Format
|
||||
run: |
|
||||
echo "=== Running formatters ==="
|
||||
echo "Running format-cpp.sh..."
|
||||
./formatters/format-cpp.sh
|
||||
echo "Running format-csharp.sh..."
|
||||
./formatters/format-csharp.sh
|
||||
echo "Running format-dart.sh..."
|
||||
./formatters/format-dart.sh
|
||||
echo "Running format-haxe.sh..."
|
||||
./formatters/format-haxe.sh
|
||||
echo "Running format-java.sh..."
|
||||
./formatters/format-java.sh
|
||||
echo "Running format-ts.sh..."
|
||||
./formatters/format-ts.sh
|
||||
echo "=== Checking differences ==="
|
||||
git diff --stat
|
||||
git diff > format-diff.txt
|
||||
|
||||
- name: Archive formatting result
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user