Skip to content

Commit 247f9d1

Browse files
authored
Use a proper action for running xcodebuild
1 parent ad22ec8 commit 247f9d1

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@ jobs:
66
iOS:
77
name: Run Unit Tests
88
runs-on: macos-latest
9-
env:
10-
PROJECT_NAME: TOSegmentedControlExample.xcodeproj
11-
SCHEME_NAME: TOSegmentedControlTests
12-
DESTINATION: "platform=iOS Simulator,name=iPhone 16 Pro"
139
steps:
1410
- name: Checkout
1511
uses: actions/checkout@v1
1612
- 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
13+
uses: sersoft-gmbh/xcodebuild-action@v3
14+
with:
15+
project: TOSegmentedControlExample.xcodeproj
16+
scheme: TOSegmentedControlTests
17+
destination: platform=iOS Simulator,name=iPhone 16 Pro
18+
action: test

0 commit comments

Comments
 (0)