added: fastlane/swiftlint for code correction check #3
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: iOS CI (Fastlane) | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| check_and_test: | |
| name: Lint & Test (via Fastlane) | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Select Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: latest-stable | |
| - name: Setup Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.2' | |
| bundler-cache: true | |
| - name: Install SwiftLint | |
| run: brew install swiftlint | |
| - name: Run Lint via Fastlane | |
| run: bundle exec fastlane lint | |
| - name: Run Fastlane Test check | |
| run: bundle exec fastlane tests | |
| env: | |
| LANG: en_US.UTF-8 | |
| LC_ALL: en_US.UTF-8 | |
| FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: 60 | |
| FASTLANE_XCODEBUILD_SETTINGS_RETRIES: 10 |