Simplify GYB device definitions with feature defaults #392
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: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| workflow_dispatch: | |
| jobs: | |
| danger: | |
| runs-on: macos-latest | |
| if: github.event_name == 'pull_request' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| bundler-cache: true | |
| ruby-version: 2.7.8 | |
| - uses: MeilCli/danger-action@v5 | |
| with: | |
| plugins_file: Gemfile | |
| install_path: vendor/bundle | |
| danger_file: Dangerfile | |
| danger_id: danger-pr | |
| env: | |
| DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| test: | |
| runs-on: macos-15 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| platform: | |
| # Use Xcode 26.2's default devices and keep the runtime in sync below. | |
| - platform=iOS Simulator,name=iPhone 17 Pro Max,OS=26.2 | |
| - platform=iOS Simulator,name=iPhone 17 Pro,OS=26.2 | |
| - platform=iOS Simulator,name=iPhone 17,OS=26.2 | |
| - platform=iOS Simulator,name=iPhone Air,OS=26.2 | |
| - platform=iOS Simulator,name=iPhone 16e,OS=26.2 | |
| - platform=tvOS Simulator,name=Apple TV,OS=26.2 | |
| - platform=tvOS Simulator,name=Apple TV 4K (3rd generation),OS=26.2 | |
| - platform=watchOS Simulator,name=Apple Watch Series 11 (46mm),OS=26.2 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: '26.2' | |
| - name: List available simulators | |
| run: xcrun simctl list devices available | |
| - uses: ruby/setup-ruby@v1 | |
| with: | |
| bundler-cache: true | |
| ruby-version: 2.7.8 | |
| - name: xcodebuild | |
| run: set -o pipefail && xcodebuild -scheme DeviceKit -destination "${{ matrix.platform }}" -configuration Debug ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test |