File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,13 +3,18 @@ name: CI
33on : [push]
44
55jobs :
6- build :
7-
6+ iOS :
7+ name : Run Unit Tests
88 runs-on : macos-latest
9-
9+ env :
10+ PROJECT_NAME : TOSegmentendControlExample.xcodeproj
11+ SCHEME_NAME : TOSegmentedControlTests
12+ DESTINATION : " platform=iOS Simulator,name=iPhone 16 Pro"
1013 steps :
11- - uses : actions/checkout@v1
12- - name : Run a one-line script
13- run : ' (curl -s -L https://tim.dev/install_ios_oss_ci | bash -s arg1 arg2) && bundle exec fastlane test'
14- env :
15- TEST_SCHEME : " TOSegmentedControlTests"
14+ - name : Checkout
15+ uses : actions/checkout@v1
16+ - name : Run Tests
17+ run : |
18+ set -o pipefail
19+ 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
20+ 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
You can’t perform that action at this time.
0 commit comments