Update CI with Xcode build command #52
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] | |
| jobs: | |
| iOS: | |
| name: Run Unit Tests | |
| runs-on: macos-latest | |
| env: | |
| PROJECT_NAME: TOSegmentendControlExample.xcodeproj | |
| SCHEME_NAME: TOSegmentedControlTests | |
| DESTINATION: "platform=iOS Simulator,name=iPhone 16 Pro" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v1 | |
| - name: Run Tests | |
| run: | | |
| set -o pipefail | |
| xcodebuild build build-for-testing -project "${{ env.PROJECT_NAME }}" -scheme "${{ env.SCHEME_NAME }}" -destination "${{ env.DESTINATION }}" -configuration Debug ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=YES | |
| xcodebuild analyze test-without-building -project "${{ env.PROJECT_NAME }}" -scheme "${{ env.SCHEME_NAME }}" -destination "${{ env.DESTINATION }}" -configuration Debug ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=YES |