Make parakeetTdtCtc110m folderName consistent with other Parakeet models #1818
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Swift Format | |
| on: | |
| pull_request: | |
| jobs: | |
| swift-format: | |
| runs-on: macos-15 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - uses: swift-actions/setup-swift@v2 | |
| with: | |
| swift-version: "6.1" | |
| - name: Run swift-format lint | |
| run: | | |
| swift format lint --recursive --configuration .swift-format Sources/ Tests/ Examples/ | |
| - name: Check formatting | |
| run: | | |
| # Create a copy to check if formatting would change files | |
| cp -r Sources Sources.bak | |
| cp -r Tests Tests.bak | |
| cp -r Examples Examples.bak || true | |
| # Format in place | |
| swift format --in-place --recursive --configuration .swift-format Sources/ Tests/ Examples/ || true | |
| # Check if any files changed | |
| if ! diff -r Sources Sources.bak > /dev/null 2>&1; then | |
| echo "❌ Swift formatting issues found in Sources/" | |
| diff -r Sources Sources.bak || true | |
| exit 1 | |
| fi | |
| if ! diff -r Tests Tests.bak > /dev/null 2>&1; then | |
| echo "❌ Swift formatting issues found in Tests/" | |
| diff -r Tests Tests.bak || true | |
| exit 1 | |
| fi | |
| if [ -d "Examples" ] && ! diff -r Examples Examples.bak > /dev/null 2>&1; then | |
| echo "❌ Swift formatting issues found in Examples/" | |
| diff -r Examples Examples.bak || true | |
| exit 1 | |
| fi | |
| echo "✅ All files are properly formatted" |