diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a95fc2b..8c5bca7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,3 +36,33 @@ jobs: swift build \ --sdk "$(xcode-select -p)/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk" \ --triple "arm64-apple-ios13.0" + xcode-build: + name: Xcode Build + runs-on: macOS-14 + strategy: + fail-fast: false + steps: + - name: Checkout Repo + uses: actions/checkout@v4 + - name: Bundle Install + run: bundle install --gemfile=Example/Gemfile + - name: Prepare Simulator Runtimes + run: Scripts/github/prepare-simulators.sh ${{ matrix.platform }} + - name: Pod Install + run: bundle exec --gemfile=Example/Gemfile pod install --project-directory=Example + - name: Select Xcode Version + run: sudo xcode-select -s /Applications/Xcode_16.app + - name: Build and Test + run: | + # run tests on the example app + xcodebuild test \ + -workspace Example/Stagehand.xcworkspace \ + -scheme "Stagehand Demo App" \ + -sdk iphonesimulator \ + -destination "platform=iOS Simulator,OS=18.0,name=iPhone 16 Pro" + - name: Upload Results + uses: actions/upload-artifact@v4 + if: failure() + with: + name: Test Results + path: .build/derivedData/**/Logs/Test/*.xcresult diff --git a/Example/Podfile.lock b/Example/Podfile.lock index 1df14d7..2053b57 100644 --- a/Example/Podfile.lock +++ b/Example/Podfile.lock @@ -38,4 +38,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: b4841bd82e57283ff97d83f4bb89137cc01f6102 -COCOAPODS: 1.11.3 +COCOAPODS: 1.14.3 diff --git a/Example/Stagehand.xcodeproj/xcshareddata/xcschemes/Stagehand Demo App.xcscheme b/Example/Stagehand.xcodeproj/xcshareddata/xcschemes/Stagehand Demo App.xcscheme index 09b9bde..e0962d6 100644 --- a/Example/Stagehand.xcodeproj/xcshareddata/xcschemes/Stagehand Demo App.xcscheme +++ b/Example/Stagehand.xcodeproj/xcshareddata/xcschemes/Stagehand Demo App.xcscheme @@ -41,6 +41,22 @@ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" shouldUseLaunchSchemeArgsEnv = "NO"> + + + + + + + + @@ -63,24 +79,6 @@ - - - - - - - - - - - -