REFACTOR: Migrate Person tests to Swift Testing (#203) #358
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: Lint | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
paths: | |
- ".github/workflows/lint.yml" | |
- "**/*.swift" | |
workflow_dispatch: | |
concurrency: | |
group: "lint-${{ github.head_ref || github.run_id }}" | |
cancel-in-progress: true | |
jobs: | |
swiftLint: | |
name: SwiftLint | |
runs-on: macos-14 | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_16_Release_Candidate.app/Contents/Developer | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install swiftlint | |
run: brew install swiftlint | |
- name: Swiftlint | |
run: swiftlint --strict --reporter github-actions-logging | |
swiftFormat: | |
name: SwiftFormat | |
runs-on: ubuntu-latest | |
container: | |
image: docker://ghcr.io/nicklockwood/swiftformat:latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: SwiftFormat | |
run: swiftformat --lint --reporter github-actions-log . |