Adopt default main actor isolation and drop CocoaPods #4
Workflow file for this run
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: | |
| - '*' | |
| jobs: | |
| test: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Toolchain | |
| run: | | |
| xcodebuild -version | |
| swift --version | |
| - name: Install SwiftLint | |
| run: brew install swiftlint | |
| - name: Lint | |
| run: | | |
| swiftlint --strict | |
| - name: Build | |
| run: | | |
| xcodebuild -scheme CellKit -destination 'generic/platform=iOS' build | |
| xcodebuild -scheme DiffableCellKit -destination 'generic/platform=iOS' build | |
| - name: Test example app | |
| run: | | |
| RUNTIME=$(xcrun simctl list runtimes available --json | jq -r '[.runtimes[] | select(.platform == "iOS")] | sort_by(.version | split(".") | map(tonumber)) | last | .identifier') | |
| UDID=$(xcrun simctl list devices available --json | jq -r --arg RT "$RUNTIME" '.devices[$RT][]? | select(.name | test("^iPhone")) | .udid' | head -1) | |
| echo "Using simulator $UDID on $RUNTIME" | |
| xcodebuild test \ | |
| -project Example/Example.xcodeproj \ | |
| -scheme Example \ | |
| -destination "platform=iOS Simulator,id=$UDID" \ | |
| -parallel-testing-enabled NO \ | |
| -retry-tests-on-failure \ | |
| CODE_SIGNING_ALLOWED=NO |