Skip to content

Commit

Permalink
Added Test Apps and Script for Integration Testing with CocoaPods, SP…
Browse files Browse the repository at this point in the history
…M, Carthage and Manually
  • Loading branch information
NidhiDixit09 committed Feb 21, 2023
1 parent 031acfb commit 9d7e0bb
Show file tree
Hide file tree
Showing 244 changed files with 12,041 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/post-release-qa.yml
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]}
90 changes: 90 additions & 0 deletions .github/workflows/pre-release-qa.yml
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]}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*.xcuserdatad
# *.xcscmblueprint # We should probably check this in.
*.o
DerivedData

# merge-repo commit/discard file
merge-repo-commit
Expand Down
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"
Loading

0 comments on commit 9d7e0bb

Please sign in to comment.