chore(deps): update dependency tuist to v4.202.0 #1601
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
| # https://help.github.com/en/github/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idname | |
| name: XcodeProj | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: {} | |
| concurrency: | |
| group: xcodeproj-${{ github.head_ref }} | |
| cancel-in-progress: true | |
| env: | |
| MISE_EXPERIMENTAL: 1 | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| jobs: | |
| build: | |
| name: Build (macOS) | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: jdx/mise-action@v3 | |
| - name: Build | |
| run: mise run build | |
| build-linux: | |
| name: Build (Linux) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: jdx/mise-action@v3 | |
| - run: mise use swift@6.0.2 | |
| - name: Build | |
| run: swift build --configuration release | |
| build-ios: | |
| name: Build (iOS) | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Build for iOS Simulator | |
| run: xcodebuild build -scheme XcodeProj -destination 'generic/platform=iOS Simulator' | |
| test: | |
| name: Test (macOS / Xcode) | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: jdx/mise-action@v3 | |
| - name: Run tests | |
| run: mise run test | |
| test-linux: | |
| name: Test (Linux) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: jdx/mise-action@v3 | |
| - run: mise use swift@6.0.2 | |
| - run: | | |
| git config --global user.email 'xcodeproj@tuist.dev' | |
| git config --global user.name 'xcodeproj' | |
| git config --global init.defaultBranch main | |
| - name: Test | |
| run: swift test | |
| test-ios: | |
| name: Test (iOS / Xcode) | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Select iOS Simulator | |
| run: | | |
| simulator_id="$(xcrun simctl list devices available | awk -F '[()]' '/iPhone/ { print $2; exit }')" | |
| if [ -z "$simulator_id" ]; then | |
| echo "No available iPhone simulator found" | |
| xcrun simctl list devices available | |
| exit 1 | |
| fi | |
| echo "IOS_SIMULATOR_ID=$simulator_id" >> "$GITHUB_ENV" | |
| - name: Run tests on iOS Simulator | |
| run: xcodebuild test -scheme XcodeProj -destination "platform=iOS Simulator,id=$IOS_SIMULATOR_ID" | |
| lint: | |
| name: Lint | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: jdx/mise-action@v3 | |
| - run: mise run lint |