mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +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:
|
jobs:
|
||||||
check-dart:
|
check-dart:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install Dart
|
- name: Install Dart
|
||||||
uses: dart-lang/setup-dart@v1
|
uses: dart-lang/setup-dart@v1
|
||||||
with:
|
with:
|
||||||
@ -25,7 +25,7 @@ jobs:
|
|||||||
- name: Check for changes
|
- name: Check for changes
|
||||||
run: |
|
run: |
|
||||||
git ls-files -m
|
git ls-files -m
|
||||||
if [[ `git ls-files -m` ]]; then
|
if [[ `git ls-files -m` ]]; then
|
||||||
echo "Detected Dart formatting errors!"
|
echo "Detected Dart formatting errors!"
|
||||||
echo "Creating diff files..."
|
echo "Creating diff files..."
|
||||||
mkdir -p dart-format-diff
|
mkdir -p dart-format-diff
|
||||||
@ -38,7 +38,7 @@ jobs:
|
|||||||
done
|
done
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Upload diff artifact
|
- name: Upload diff artifact
|
||||||
if: failure()
|
if: failure()
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user