diff --git a/.github/workflows/format-check-cpp.yml b/.github/workflows/format-check-cpp.yml index 0476d00b3..7f436439d 100644 --- a/.github/workflows/format-check-cpp.yml +++ b/.github/workflows/format-check-cpp.yml @@ -2,6 +2,22 @@ name: Check C++ Formatting on: push: + paths: + - 'spine-cpp/**' + - 'spine-c/**' + - 'spine-godot/**' + - 'spine-ue/**' + - 'spine-glfw/**' + - 'spine-sdl/**' + - 'spine-sfml/**' + - 'spine-cocos2dx/**' + - 'spine-ios/**' + - 'spine-flutter/ios/**' + - 'spine-flutter/macos/**' + - 'spine-flutter/src/**' + - 'formatters/.clang-format' + - 'formatters/format-cpp.sh' + - '.github/workflows/format-check-cpp.yml' workflow_dispatch: jobs: diff --git a/.github/workflows/format-check-csharp.yml b/.github/workflows/format-check-csharp.yml index 4ec1fcc01..54618ab8e 100644 --- a/.github/workflows/format-check-csharp.yml +++ b/.github/workflows/format-check-csharp.yml @@ -2,6 +2,13 @@ name: Check C# Formatting on: push: + paths: + - 'spine-csharp/**' + - 'spine-monogame/**' + - 'spine-unity/**' + - 'formatters/.editorconfig' + - 'formatters/format-csharp.sh' + - '.github/workflows/format-check-csharp.yml' workflow_dispatch: jobs: diff --git a/.github/workflows/format-check-dart.yml b/.github/workflows/format-check-dart.yml index 81ab465e9..36c0fa3ee 100644 --- a/.github/workflows/format-check-dart.yml +++ b/.github/workflows/format-check-dart.yml @@ -2,6 +2,10 @@ name: Check Dart Formatting on: push: + paths: + - 'spine-flutter/**/*.dart' + - 'formatters/format-dart.sh' + - '.github/workflows/format-check-dart.yml' workflow_dispatch: jobs: diff --git a/.github/workflows/format-check-haxe.yml b/.github/workflows/format-check-haxe.yml index e6ccf8ca7..816cf5b5c 100644 --- a/.github/workflows/format-check-haxe.yml +++ b/.github/workflows/format-check-haxe.yml @@ -2,6 +2,10 @@ name: Check Haxe Formatting on: push: + paths: + - 'spine-haxe/**' + - 'formatters/format-haxe.sh' + - '.github/workflows/format-check-haxe.yml' workflow_dispatch: jobs: diff --git a/.github/workflows/format-check-java.yml b/.github/workflows/format-check-java.yml index afb5fa7eb..1d7d55431 100644 --- a/.github/workflows/format-check-java.yml +++ b/.github/workflows/format-check-java.yml @@ -2,6 +2,13 @@ name: Check Java Formatting on: push: + paths: + - 'spine-libgdx/**' + - 'spine-android/**' + - 'formatters/eclipse-formatter.xml' + - 'formatters/eclipse-formatter/**' + - 'formatters/format-java.sh' + - '.github/workflows/format-check-java.yml' workflow_dispatch: jobs: diff --git a/.github/workflows/format-check-typescript.yml b/.github/workflows/format-check-typescript.yml index 2a1a3f266..e433a6d84 100644 --- a/.github/workflows/format-check-typescript.yml +++ b/.github/workflows/format-check-typescript.yml @@ -2,6 +2,13 @@ name: Check TypeScript Formatting on: push: + paths: + - 'spine-ts/**' + - 'tests/**/*.ts' + - 'tests/tsfmt.json' + - 'formatters/tsfmt.json' + - 'formatters/format-ts.sh' + - '.github/workflows/format-check-typescript.yml' workflow_dispatch: jobs: