style: auto-format codebase with swiftformat #107
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: macos-26 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install SwiftLint and SwiftFormat | |
| run: brew install swiftlint swiftformat | |
| - name: SwiftFormat | |
| run: swiftformat --lint . | |
| - name: SwiftLint | |
| run: swiftlint | |
| build-and-test: | |
| name: Build & Test | |
| runs-on: macos-26 | |
| needs: lint | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Create local configuration | |
| run: cp Outspire/Configurations.local.swift.example Outspire/Configurations.local.swift | |
| - name: Select Xcode | |
| run: sudo xcode-select --switch /Applications/Xcode_26.3.app/Contents/Developer | |
| - name: Build & run unit tests | |
| run: | | |
| xcodebuild \ | |
| -project Outspire.xcodeproj \ | |
| -scheme "Outspire" \ | |
| -destination 'platform=iOS Simulator,name=iPhone 17 Pro' \ | |
| -skipPackagePluginValidation \ | |
| -enableCodeCoverage YES \ | |
| test |