修复lint错误 #30
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 | |
| - master | |
| - develop | |
| pull_request: | |
| jobs: | |
| build-and-test: | |
| runs-on: macos-14 | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: '16.2' | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.2 | |
| bundler-cache: true | |
| - name: Cache Swift Package Manager | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/Library/Developer/Xcode/DerivedData | |
| .build | |
| key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }} | |
| restore-keys: | | |
| ${{ runner.os }}-spm- | |
| - name: Install SwiftLint | |
| run: brew install swiftlint | |
| - name: Install dependencies | |
| run: bundle install | |
| - name: Run Fastlane CI lane | |
| env: | |
| CI: true | |
| GITHUB_ACTIONS: true | |
| LC_ALL: en_US.UTF-8 | |
| LANG: en_US.UTF-8 | |
| FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: 60 | |
| FASTLANE_XCODEBUILD_SETTINGS_RETRIES: 3 | |
| run: bundle exec fastlane ci | |