Skip to content

Commit afed731

Browse files
committed
Update gpt-driver-tests.yml
1 parent 6f0aa17 commit afed731

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

.github/workflows/gpt-driver-tests.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
name: iOS Release Build and GPTDriver Tests
1+
name: GPTDriver Test Suite Automation
22

33
on:
44
workflow_dispatch:
55
inputs:
6+
push:
7+
branches:
8+
- 'Release-*' # Trigger for branches starting with "Release-"
69

710
jobs:
8-
BuildAndTestAppOnGPTDriver: # Job name, as chosen
9-
runs-on: macos-latest # macOS runner is required for iOS builds
11+
BuildAndTestAppOnGPTDriver:
12+
runs-on: macos-latest
1013
steps:
1114
# --- Step 1: Extract version from branch name ---
1215
- name: Extract version from branch name
@@ -56,9 +59,9 @@ jobs:
5659
# The output framework will be in build/Debug-iphonesimulator/BranchSDK.framework
5760
xcodebuild -scheme xcframework \
5861
BUILD_DIR="${{ github.workspace }}/branch-ios-sdk-repo/build"
59-
working-directory: ./branch-ios-sdk-repo # Run xcodebuild from the SDK's checkout directory
62+
working-directory: ./branch-ios-sdk-repo
6063

61-
# --- Step 4: Checkout the iOS Branch Link Simulator App repository ---
64+
# --- Step 4: Checkout the iOS Branch Link Simulator App repository ---
6265
- name: Checkout BranchMetrics/BranchLinkSimulator (App)
6366
uses: actions/checkout@v4
6467
with:
@@ -74,6 +77,8 @@ jobs:
7477
# Copy the built framework
7578
cp -R ./branch-ios-sdk-repo/build/BranchSDK.xcframework ./ios-app-repo/Frameworks/
7679
working-directory: ${{ github.workspace }} # Run from the root of the GITHUB_WORKSPACE
80+
81+
# --- Step 6: Install Code Sign Certificate and Provisioning profile
7782
- name: Install the Apple certificate and provisioning profile
7883
env:
7984
BUILD_CERTIFICATE_BASE64: ${{ secrets.BS_BUILD_CERTIFICATE }}
@@ -118,7 +123,7 @@ jobs:
118123
CURRENT_PROJECT_VERSION=${{ env.VERSION_CODE_INT }} \
119124
-sdk iphoneos archive -archivePath ./IPA/BranchLinkSimulator.xcarchive
120125
xcodebuild -exportArchive -archivePath ./IPA/BranchLinkSimulator.xcarchive -exportOptionsPlist IPA/Info.plist -exportPath IPA/
121-
working-directory: ./ios-app-repo # Run xcodebuild from the App's checkout directory
126+
working-directory: ./ios-app-repo
122127

123128
# --- Step 7: Echo the location of the generated .app bundle ---
124129
- name: Echo .app bundle location
@@ -133,12 +138,12 @@ jobs:
133138
name: BranchLinkSimulator-iOS-Debug-Build
134139
path: ./ios-app-repo/IPA/BranchLinkSimulator.ipa
135140

136-
# --- Step 9: Upload and run tests on GPTDriver service. ---
141+
# --- Step 9: Run tests on GPTDriver service. ---
137142
- name: Run GPTDriver tests
138143
run: |
139144
chmod +x ./branch-ios-sdk-repo/.github/gptdriverrunscript.sh
140145
./branch-ios-sdk-repo/.github/gptdriverrunscript.sh ./ios-app-repo/IPA/BranchLinkSimulator.ipa ios
141146
env:
142147
API_ORG_KEY: ${{ secrets.MOBILEBOOST_API_ORG_KEY }}
143-
API_KEY: ${{ secrets.MOBILEBOOST_API_ORG_KEY }} # As per vendor design
144-
TEST_TAGS: Release
148+
API_KEY: ${{ secrets.MOBILEBOOST_API_ORG_KEY }}
149+
TEST_TAGS: ios

0 commit comments

Comments
 (0)