Utilize cache infra #1584
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: Linter | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| lint: | |
| name: Lint Swift code with SwiftFormat | |
| runs-on: macos-15-xlarge | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: jdx/mise-action@v2 | |
| - name: Run swiftformat | |
| run: swiftformat --lint . | |
| - name: Report error | |
| if: ${{ failure() }} | |
| run: | | |
| echo '::error::SwiftFormat linting failed. Run `Scripts/swiftformat` to format your code.' |