Report string errors properly #254
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: Formatting Code | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| swiftformat: | |
| name: Swift | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Check for Swift file changes | |
| id: changes | |
| uses: dorny/paths-filter@v3 | |
| with: | |
| filters: | | |
| swift: | |
| - '**/*.swift' | |
| - uses: SwiftyLab/setup-swift@latest | |
| if: steps.changes.outputs.swift == 'true' | |
| with: | |
| swift-version: 6.2 | |
| - name: Cache SwiftPM artifacts | |
| if: steps.changes.outputs.swift == 'true' | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.swiftpm | |
| .build | |
| key: ${{ runner.os }}-swiftpm-format-${{ hashFiles('**/Package.swift') }} | |
| restore-keys: | | |
| ${{ runner.os }}-swiftpm-format | |
| - name: Format code | |
| if: steps.changes.outputs.swift == 'true' | |
| run: Scripts/format.sh --lint . --reporter github-actions-log |