-
Notifications
You must be signed in to change notification settings - Fork 83
SDK-292: Deep Link BCIT Testing Framework - Complete Infrastructure Ready #990
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
106 changes: 106 additions & 0 deletions
106
.github/workflows/bcit-integration-test-deep-linking.yml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,106 @@ | ||
| name: BCIT Deep Linking Integration Test | ||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, reopened, labeled] | ||
| workflow_dispatch: | ||
| inputs: | ||
| ref: | ||
| description: 'Branch or commit to test (leave empty for current branch)' | ||
| required: false | ||
| type: string | ||
|
|
||
| jobs: | ||
| deep-linking-test: | ||
| name: BCIT Deep Linking Integration Test | ||
| runs-on: macos-latest | ||
| timeout-minutes: 30 | ||
| env: | ||
| XCODE_VERSION: '16.4' | ||
| if: > | ||
| github.event_name == 'workflow_dispatch' || | ||
| ( | ||
| github.event_name == 'pull_request' && ( | ||
| contains(github.event.pull_request.labels.*.name, 'bcit') || | ||
| contains(github.event.pull_request.labels.*.name, 'BCIT') || | ||
| contains(github.event.pull_request.labels.*.name, 'bcit-deeplink') || | ||
| contains(github.event.pull_request.labels.*.name, 'BCIT-DEEPLINK') || | ||
| contains(github.event.pull_request.labels.*.name, 'bcit-deep-linking') || | ||
| contains(github.event.pull_request.labels.*.name, 'BCIT-DEEP-LINKING') || | ||
| contains(github.event.pull_request.labels.*.name, 'Bcit') || | ||
| contains(github.event.pull_request.labels.*.name, 'Bcit-Deeplink') || | ||
| startsWith(github.event.pull_request.head.ref, 'release/') | ||
| ) | ||
| ) | ||
|
|
||
| steps: | ||
| - name: Checkout Repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ github.event.inputs.ref || github.ref }} | ||
|
|
||
| - name: Setup Xcode | ||
| uses: maxim-lobanov/setup-xcode@v1 | ||
| with: | ||
| xcode-version: ${{ env.XCODE_VERSION }} | ||
|
|
||
| - name: Validate Xcode Version | ||
| run: | | ||
| echo "π Validating Xcode version and environment..." | ||
| echo "DEVELOPER_DIR: $DEVELOPER_DIR" | ||
|
|
||
| # Check xcodebuild version | ||
| echo "π Checking xcodebuild version..." | ||
| ACTUAL_XCODE_VERSION=$(xcodebuild -version | head -n 1 | awk '{print $2}') | ||
| echo "Xcode version: $ACTUAL_XCODE_VERSION" | ||
| echo "Expected version: $XCODE_VERSION" | ||
|
|
||
| # Check xcodebuild path | ||
| XCODEBUILD_PATH=$(which xcodebuild) | ||
| echo "xcodebuild path: $XCODEBUILD_PATH" | ||
|
|
||
| # Verify we're using the correct Xcode version | ||
| if echo "$ACTUAL_XCODE_VERSION" | grep -q "$XCODE_VERSION"; then | ||
| echo "β Using correct Xcode version: $ACTUAL_XCODE_VERSION" | ||
| else | ||
| echo "β Incorrect Xcode version!" | ||
| echo "Current: $ACTUAL_XCODE_VERSION" | ||
| echo "Expected: $XCODE_VERSION" | ||
| exit 1 | ||
| fi | ||
|
|
||
| - name: Setup Local Environment | ||
| working-directory: tests/business-critical-integration | ||
| run: | | ||
| echo "π Setting up local environment for integration tests..." | ||
|
|
||
| # Run setup script with parameters from repository secrets | ||
| ./scripts/setup-local-environment.sh \ | ||
| "${{ secrets.BCIT_TEST_PROJECT_ID }}" \ | ||
| "${{ secrets.BCIT_ITERABLE_SERVER_KEY }}" \ | ||
| "${{ secrets.BCIT_ITERABLE_API_KEY }}" | ||
|
|
||
| - name: Validate Setup | ||
| working-directory: tests/business-critical-integration | ||
| run: | | ||
| echo "π Validating environment setup..." | ||
| ./scripts/validate-setup.sh | ||
|
|
||
| - name: Run Deep Linking Tests | ||
| working-directory: tests/business-critical-integration | ||
| run: | | ||
| echo "π§ͺ Running deep linking integration tests..." | ||
| CI=true ./scripts/run-tests.sh deeplink | ||
|
|
||
| - name: Upload Test Results | ||
| if: always() | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: deep-linking-test-results | ||
| path: | | ||
| tests/business-critical-integration/reports/ | ||
| tests/business-critical-integration/screenshots/ | ||
| tests/business-critical-integration/logs/ | ||
| retention-days: 7 | ||
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.