spine-runtimes/.github/workflows/format-check-dart.yml
Mario Zechner bc9732f0a1 Split formatting workflow into separate language-specific workflows
- Add individual workflows for C++, C#, Dart, Haxe, Java, and TypeScript
- Each workflow runs independently for faster testing and debugging
- Rename original workflow to indicate it's the combined version

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-25 23:47:11 +02:00

28 lines
558 B
YAML

name: Check Dart Formatting
on:
push:
workflow_dispatch:
jobs:
check-dart:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- name: Install Dart
uses: dart-lang/setup-dart@v1
with:
sdk: '3.8.1'
- name: Check dart format version
run: |
dart format --version
- name: Format Dart
run: ./formatters/format-dart.sh
- name: Check for changes
run: |
git ls-files -m
if [[ `git ls-files -m` ]]; then echo "Detected Dart formatting errors!" & exit 1; fi