build: set up tuist #1166
This file contains 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-14-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.' |