Fastfile beta lane: use built-in increment_build_number (drop xcodepr… #34
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: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| paths-ignore: | |
| - "**/*.md" | |
| - "PRIVACY.md" | |
| - "fastlane/README.md" | |
| - "fastlane/metadata/**" | |
| - "fastlane/screenshots/**" | |
| - ".github/ISSUE_TEMPLATE/**" | |
| - ".github/PULL_REQUEST_TEMPLATE.md" | |
| - "docs/**" | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: Build & test | |
| runs-on: macos-15 | |
| timeout-minutes: 30 | |
| env: | |
| LC_ALL: en_US.UTF-8 | |
| LANG: en_US.UTF-8 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Lint ASC metadata | |
| run: bash scripts/lint-metadata.sh | |
| - name: Select latest stable Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: latest-stable | |
| - name: Show toolchain | |
| run: | | |
| xcodebuild -version | |
| swift --version | |
| - name: Install xcodegen + imagemagick | |
| run: brew install xcodegen imagemagick | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: "3.3" | |
| bundler-cache: true | |
| - name: Run unit tests | |
| run: bundle exec fastlane test | |
| - name: Upload test artifacts on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-output | |
| path: | | |
| fastlane/test_output | |
| ~/Library/Logs/scan | |
| if-no-files-found: ignore |