mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-13 02:28:44 +08:00
Run dart formatting check on macOS runner
Same Dart formatter version produces different results on macOS and Linux ...
This commit is contained in:
parent
75e7a77e4c
commit
2789f62692
8
.github/workflows/format-check-dart.yml
vendored
8
.github/workflows/format-check-dart.yml
vendored
@ -6,10 +6,10 @@ on:
|
||||
|
||||
jobs:
|
||||
check-dart:
|
||||
runs-on: ubuntu-24.04
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
|
||||
- name: Install Dart
|
||||
uses: dart-lang/setup-dart@v1
|
||||
with:
|
||||
@ -25,7 +25,7 @@ jobs:
|
||||
- name: Check for changes
|
||||
run: |
|
||||
git ls-files -m
|
||||
if [[ `git ls-files -m` ]]; then
|
||||
if [[ `git ls-files -m` ]]; then
|
||||
echo "Detected Dart formatting errors!"
|
||||
echo "Creating diff files..."
|
||||
mkdir -p dart-format-diff
|
||||
@ -38,7 +38,7 @@ jobs:
|
||||
done
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
- name: Upload diff artifact
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v4
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user