Skip to content

Commit 7e70eb4

Browse files
authored
Update CI with Xcode build command
1 parent ecf54e9 commit 7e70eb4

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@ name: CI
33
on: [push]
44

55
jobs:
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

0 commit comments

Comments
 (0)