Migrate from Travis CI to GitHub Actions #16
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] | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: macos-15 | |
| xcode: "26.2" | |
| destination: "platform=iOS Simulator,name=iPhone 17,OS=26.2" | |
| - os: macos-15 | |
| xcode: "16.2" | |
| destination: "platform=iOS Simulator,name=iPhone 16,OS=18.2" | |
| - os: macos-14 | |
| xcode: "15.4" | |
| destination: "platform=iOS Simulator,name=iPhone 15,OS=17.5" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Select Xcode | |
| run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app | |
| - name: Install Tuist | |
| run: | | |
| brew tap tuist/tuist | |
| brew install --formula tuist | |
| - name: Generate Project | |
| run: tuist generate --no-open | |
| - name: Run Tests | |
| run: | | |
| xcodebuild test \ | |
| -scheme "Tests" \ | |
| -destination "${{ matrix.destination }}" \ | |
| -configuration Debug \ | |
| CODE_SIGN_IDENTITY="" \ | |
| CODE_SIGNING_REQUIRED=NO |