iOS Verify #9
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 Verify | |
| on: | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| jobs: | |
| ios-layer-rules: | |
| name: Layer Rules | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Layer rules | |
| run: bash .github/scripts/lint-ios-layers.sh | |
| ios-verify: | |
| name: Build & Test (iOS) | |
| if: github.event_name == 'workflow_dispatch' | |
| runs-on: [self-hosted, macos, piper] | |
| timeout-minutes: 120 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| - name: Build and test | |
| run: | | |
| xcodebuild test \ | |
| -project ios/Piper.xcodeproj \ | |
| -scheme Piper \ | |
| -destination 'platform=iOS Simulator,name=iPhone 16,OS=latest' \ | |
| -resultBundlePath ios/TestResults.xcresult \ | |
| CODE_SIGN_IDENTITY="" \ | |
| CODE_SIGNING_REQUIRED=NO | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results | |
| path: ios/TestResults.xcresult |