feat: SwiftLintのバージョン表示を追加 #3
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: Swift Build and Test | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| macos-build: | |
| name: Build and Test on macOS | |
| runs-on: macos-latest | |
| steps: | |
| - uses: swift-actions/[email protected] | |
| with: | |
| swift-version: 6.1 | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Build | |
| run: swift build --package-path Core | |
| - name: Test | |
| run: swift test --package-path Core | |
| xcodebuild-test: | |
| name: Xcodebuild test on macOS | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Verify xcodebuild installation | |
| run: xcodebuild -version | |
| - name: List available schemes | |
| run: xcodebuild -project azooKeyMac.xcodeproj -list | |
| - name: Test building azooKeyMac (Release configuration) | |
| run: xcodebuild -project azooKeyMac.xcodeproj -scheme azooKeyMac -configuration Release -quiet build | |
| swiftlint: | |
| name: SwiftLint | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Install SwiftLint | |
| run: | | |
| brew update | |
| brew install swiftlint | |
| - name: Check SwiftLint version | |
| run: swiftlint version | |
| - name: Run SwiftLint | |
| run: | | |
| swiftlint --fix --format | |
| swiftlint --quiet --strict | |