Update pre-release-qa.yml #1294
This file contains hidden or 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
| name: Pre Release SDK Integration Tests | |
| on: [push] | |
| jobs: | |
| verify-cocoapods-iOS: | |
| runs-on: macos-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Install pod, build project and run tests | |
| run: | | |
| mkdir -p test-results | |
| echo "branch=${{ github.ref }}" >> $GITHUB_OUTPUT | |
| ./scripts/getSimulator | |
| DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest" | |
| cd SDKIntegrationTestApps/iOSReleaseTest-Cocoapods/ | |
| pod install | |
| xcodebuild -configuration Debug \ | |
| -scheme iOSReleaseTest -workspace iOSReleaseTest.xcworkspace \ | |
| -sdk iphonesimulator \ | |
| -destination "$DESTINATION" \ | |
| CODE_SIGNING_ALLOWED=NO \ | |
| CODE_SIGNING_REQUIRED=NO \ | |
| PROVISIONING_PROFILE_SPECIFIER="" \ | |
| DEVELOPMENT_TEAM="" \ | |
| -resultBundlePath ../../test-results/ios-cocoapods.xcresult \ | |
| clean test | |
| - name: Upload test report | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: test-report-cocoapods-iOS | |
| path: test-results | |
| verify-carthage-iOS: | |
| runs-on: macos-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Create Cart File, run carthage command, build project and run tests | |
| env: | |
| BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | |
| run: | | |
| mkdir -p test-results | |
| CURR_DIR=$(PWD) | |
| ./scripts/getSimulator | |
| DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest" | |
| cd SDKIntegrationTestApps/iOSReleaseTest-Carthage/ | |
| echo "git \"file://${CURR_DIR}\" \"$BRANCH_NAME\" " >> cartfile | |
| carthage update --use-xcframeworks | |
| xcodebuild -configuration Debug \ | |
| -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj \ | |
| -sdk iphonesimulator \ | |
| -destination "$DESTINATION" \ | |
| CODE_SIGNING_ALLOWED=NO \ | |
| CODE_SIGNING_REQUIRED=NO \ | |
| PROVISIONING_PROFILE_SPECIFIER="" \ | |
| DEVELOPMENT_TEAM="" \ | |
| -resultBundlePath ../../test-results/ios-carthage.xcresult \ | |
| clean test | |
| - name: Upload test report | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: test-report-carthage-iOS | |
| path: test-results | |
| verify-SPM-iOS: | |
| runs-on: macos-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: build project and run tests | |
| run: | | |
| mkdir -p test-results | |
| ./scripts/getSimulator | |
| DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest" | |
| cd SDKIntegrationTestApps/iOSReleaseTest-SPM/ | |
| xcodebuild -configuration Debug \ | |
| -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj \ | |
| -sdk iphonesimulator \ | |
| -destination "$DESTINATION" \ | |
| CODE_SIGNING_ALLOWED=NO \ | |
| CODE_SIGNING_REQUIRED=NO \ | |
| PROVISIONING_PROFILE_SPECIFIER="" \ | |
| DEVELOPMENT_TEAM="" \ | |
| -resultBundlePath ../../test-results/ios-spm.xcresult \ | |
| clean test | |
| - name: Upload test report | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: test-report-spm-iOS | |
| path: test-results | |
| verify-manually-with-xcframework-iOS: | |
| runs-on: macos-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: build xcframework, then build project and run tests | |
| run: | | |
| mkdir -p test-results | |
| ./scripts/getSimulator | |
| DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest" | |
| xcodebuild -scheme xcframework | |
| cd SDKIntegrationTestApps/iOSReleaseTest-Manual/ | |
| xcodebuild -configuration Debug \ | |
| -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj \ | |
| -sdk iphonesimulator \ | |
| -destination "$DESTINATION" \ | |
| CODE_SIGNING_ALLOWED=NO \ | |
| CODE_SIGNING_REQUIRED=NO \ | |
| PROVISIONING_PROFILE_SPECIFIER="" \ | |
| DEVELOPMENT_TEAM="" \ | |
| -resultBundlePath ../../test-results/ios-xcframework.xcresult \ | |
| clean test | |
| - name: Upload test report | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: test-report-manual-xcframework-iOS | |
| path: test-results | |
| verify-manually-with-StaticFramework-iOS: | |
| runs-on: macos-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: build static xcframework, then build project and run tests | |
| run: | | |
| mkdir -p test-results | |
| ./scripts/getSimulator | |
| DESTINATION="platform=iOS Simulator,name=$(cat ./iphoneSim),OS=latest" | |
| xcodebuild -scheme static-xcframework | |
| cd SDKIntegrationTestApps/iOSReleaseTest-Manual-Static/ | |
| xcodebuild -configuration Debug \ | |
| -scheme iOSReleaseTest -project iOSReleaseTest.xcodeproj \ | |
| -sdk iphonesimulator \ | |
| -destination "$DESTINATION" \ | |
| CODE_SIGNING_ALLOWED=NO \ | |
| CODE_SIGNING_REQUIRED=NO \ | |
| PROVISIONING_PROFILE_SPECIFIER="" \ | |
| DEVELOPMENT_TEAM="" \ | |
| -resultBundlePath ../../test-results/ios-static-framework.xcresult \ | |
| clean test | |
| - name: Upload test report | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: test-report-manual-static-iOS | |
| path: test-results | |
| verify-cocoapods-tvOS: | |
| runs-on: macos-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Install pod, build project and run tests | |
| run: | | |
| mkdir -p test-results | |
| ./scripts/getSimulator | |
| DESTINATION="platform=tvOS Simulator,name=$(cat ./appleTVSim),OS=latest" | |
| cd SDKIntegrationTestApps/tvOSReleaseTest-Cocoapods/ | |
| pod install | |
| xcodebuild test -scheme tvOSReleaseTest -workspace tvOSReleaseTest.xcworkspace -destination "$DESTINATION" -resultBundlePath ../../test-results/tvOS-cocoapods.xcresult | |
| - name: Upload test report | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: test-report-cocoapods-tvOS | |
| path: test-results | |
| verify-carthage-tvOS: | |
| runs-on: macos-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Verify Integration using Carthage for tvOS | |
| run: | | |
| mkdir -p test-results | |
| ./scripts/getSimulator | |
| DESTINATION="platform=tvOS Simulator,name=$(cat ./appleTVSim),OS=latest" | |
| cd SDKIntegrationTestApps/tvOSReleaseTest-Carthage/ | |
| echo "Skipping it ... its broken" | |
| verify-manually-with-xcframework-tvOS: | |
| runs-on: macos-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: build xcframework, then build project and run tests | |
| run: | | |
| mkdir -p test-results | |
| ./scripts/getSimulator | |
| DESTINATION="platform=tvOS Simulator,name=$(cat ./appleTVSim),OS=latest" | |
| xcodebuild -scheme xcframework | |
| cd SDKIntegrationTestApps/tvOSReleaseTest-Manual/ | |
| xcodebuild test -scheme tvOSReleaseTest -project tvOSReleaseTest.xcodeproj -destination "$DESTINATION" -resultBundlePath ../../test-results/tvOS-xcframework.xcresult | |
| - name: Upload test report | |
| uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: test-report-manual-xcframework-tvOS | |
| path: test-results |