-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Test Apps and Script for Integration Testing with CocoaPods, SP…
…M, Carthage and Manually
- Loading branch information
1 parent
031acfb
commit 9d7e0bb
Showing
244 changed files
with
12,041 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Post Release SDK Integration Tests | ||
|
||
on: [workflow_dispatch,push] | ||
|
||
jobs: | ||
verify-cocoapods-iOS: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: Install pod, build project and run tests | ||
run: | | ||
cd SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Cocoapods/ | ||
pod install | ||
xcodebuild test -scheme iOSReleaseTest -workspace iOSReleaseTest.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 13,OS=latest' | xcpretty && exit ${PIPESTATUS[0]} | ||
verify-carthage-iOS: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: Run carthage command, build project and run tests | ||
run: | | ||
cd SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/ | ||
carthage update --use-xcframeworks | ||
xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination 'platform=iOS Simulator,name=iPhone 13,OS=latest' | xcpretty && exit ${PIPESTATUS[0]} | ||
verify-SPM-iOS: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: build project and run tests | ||
run: | | ||
cd SDKIntegrationTestApps/PostRelease-iOSReleaseTest-SPM/ | ||
xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination 'platform=iOS Simulator,name=iPhone 13,OS=latest' | xcpretty && exit ${PIPESTATUS[0]} | ||
verify-cocoapods-tvOS: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: Install pod, build project and run tests | ||
run: | | ||
cd SDKIntegrationTestApps/PostRelease-tvOSReleaseTest-Cocoapods/ | ||
pod install | ||
xcodebuild test -scheme tvOSReleaseTest -workspace tvOSReleaseTest.xcworkspace -destination 'platform=tvOS Simulator,name=Apple TV,OS=latest' | xcpretty && exit ${PIPESTATUS[0]} | ||
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
name: Pre Release SDK Integration Tests | ||
|
||
on: [push] | ||
|
||
jobs: | ||
verify-cocoapods-iOS: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: Install pod, build project and run tests | ||
run: | | ||
cd SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/ | ||
pod install | ||
xcodebuild test -scheme iOSReleaseTest -workspace iOSReleaseTest.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 13,OS=latest' | xcpretty && exit ${PIPESTATUS[0]} | ||
verify-carthage-iOS: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: Create Cart File, run carthage command, build project and run tests | ||
env: | ||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | ||
run: | | ||
CURR_DIR=$(PWD) | ||
cd SDKIntegrationTestApps/iOSReleaseTest-Carthage/ | ||
echo "git \"file://${CURR_DIR}\" \"$BRANCH_NAME\" " >> cartfile | ||
carthage update --use-xcframeworks | ||
xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination 'platform=iOS Simulator,name=iPhone 13,OS=latest' | xcpretty && exit ${PIPESTATUS[0]} | ||
verify-SPM-iOS: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: build project and run tests | ||
run: | | ||
cd SDKIntegrationTestApps/iOSReleaseTest-SPM/ | ||
xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination 'platform=iOS Simulator,name=iPhone 13,OS=latest' | xcpretty && exit ${PIPESTATUS[0]} | ||
verify-manually-with-xcframework-iOS: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: build xcframework, then build project and run tests | ||
run: | | ||
cd carthage-files/ | ||
xcodebuild -scheme Branch-xcframework | ||
cd ../SDKIntegrationTestApps/iOSReleaseTest-Manual/ | ||
xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination 'platform=iOS Simulator,name=iPhone 13,OS=latest' | xcpretty && exit ${PIPESTATUS[0]} | ||
verify-manually-with-StaticFramework-iOS: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: build static xcframework, then build project and run tests | ||
run: | | ||
cd carthage-files/ | ||
xcodebuild -scheme Branch-static-xcframework | ||
cd ../SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/ | ||
xcodebuild test -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj -destination 'platform=iOS Simulator,name=iPhone 13,OS=latest' | xcpretty && exit ${PIPESTATUS[0]} | ||
verify-cocoapods-tvOS: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: Install pod, build project and run tests | ||
run: | | ||
cd SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/ | ||
pod install | ||
xcodebuild test -scheme tvOSReleaseTest -workspace tvOSReleaseTest.xcworkspace -destination 'platform=tvOS Simulator,name=Apple TV,OS=latest' | xcpretty && exit ${PIPESTATUS[0]} | ||
verify-carthage-tvOS: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: Verify Integration using Carthage for tvOS | ||
run: | | ||
cd SDKIntegrationTestApps/tvOSReleaseTest-Carthage/ | ||
echo "Skipping it ... its broken" | ||
verify-manually-with-xcframework-tvOS: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: build xcframework, then build project and run tests | ||
run: | | ||
cd carthage-files/ | ||
xcodebuild -scheme Branch-xcframework | ||
cd ../SDKIntegrationTestApps/tvOSReleaseTest-Manual/ | ||
xcodebuild test -scheme tvOSReleaseTest -project tvOSReleaseTest.xcodeproj -destination 'platform=tvOS Simulator,name=Apple TV,OS=latest' | xcpretty && exit ${PIPESTATUS[0]} |
This file contains 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
1 change: 1 addition & 0 deletions
1
SDKIntegrationTestApps/PostRelease-iOSReleaseTest-Carthage/cartfile
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
git "file:///Users/nidhi.dixit/Documents/GitHub/ios-branch-deep-linking-attribution" |
Oops, something went wrong.