Merge pull request #105 from devxoul/fix/tvos-simulator-ci #32
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] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: Test ${{ matrix.platform }} | |
| runs-on: macos-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - platform: iOS | |
| scheme: Then-iOS | |
| destination: platform=iOS Simulator,name=iPhone 16,OS=latest | |
| - platform: macOS | |
| scheme: Then-macOS | |
| destination: platform=macOS | |
| - platform: tvOS | |
| scheme: Then-tvOS | |
| destination: platform=tvOS Simulator,name=Apple TV,OS=latest | |
| - platform: watchOS | |
| scheme: Then-watchOS | |
| destination: platform=watchOS Simulator,name=Apple Watch Series 10 (46mm),OS=latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Tuist | |
| run: brew install tuist | |
| - name: Install tvOS Simulator | |
| if: matrix.platform == 'tvOS' | |
| run: xcodebuild -downloadPlatform tvOS | |
| - name: Generate project | |
| run: tuist generate --no-open | |
| - name: Build and Test | |
| run: | | |
| xcodebuild clean build test \ | |
| -project Then.xcodeproj \ | |
| -scheme "${{ matrix.scheme }}" \ | |
| -destination "${{ matrix.destination }}" \ | |
| -enableCodeCoverage YES \ | |
| CODE_SIGN_IDENTITY="" \ | |
| CODE_SIGNING_REQUIRED=NO |