Skip to content

Commit afef0a6

Browse files
committed
chore: build and test ios
1 parent b459f61 commit afef0a6

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

.github/workflows/ui-tests.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,6 @@ jobs:
7070
- targetPlatform: Android
7171
runs-on: [ self-hosted, macOS ]
7272
test_script: browserstack-sdk pytest -s ./test/test_android.py --browserstack.config "browserstack.android.yml"
73-
- targetPlatform: iOS
74-
runs-on: [ self-hosted, macOS ]
75-
test_script: browserstack-sdk pytest -s ./test/test_ios.py --browserstack.config "browserstack.ios.yml"
7673
concurrency:
7774
group: test-${{ matrix.targetPlatform }}
7875
runs-on: ${{ matrix.runs-on }}
@@ -98,4 +95,26 @@ jobs:
9895
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
9996
working-directory: sample/Tests
10097
run: ${{ matrix.test_script }}
98+
test-ios:
99+
name: Run iOS UI tests 🧪
100+
runs-on: [ self-hosted, macOS ]
101+
steps:
102+
- uses: actions/checkout@v3
103+
with:
104+
lfs: true
105+
- name: build iOS app
106+
working-directory: sample
107+
run: ./build_ios.sh
108+
- uses: actions/setup-python@v4
109+
with:
110+
python-version: "3.10"
111+
- name: Install dependencies
112+
run: pip install -r "sample/Tests/requirements.txt"
113+
- name: Run UI tests
114+
env:
115+
MAILSLURP_API_KEY: ${{ secrets.MAILSLURP_API_KEY }}
116+
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
117+
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
118+
working-directory: sample/Tests
119+
run: browserstack-sdk pytest -s ./test/test_ios.py --browserstack.config "browserstack.ios.yml"
101120

sample/Tests/Payload.ipa

-34.5 MB
Binary file not shown.

sample/Tests/browserstack.ios.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ source: pytest-browserstack:sample-sdk:v1.0
2626
# Set `app` to define the app that is to be used for testing.
2727
# It can either take the id of any uploaded app or the path of the app directly.
2828
#app: ./WikipediaSample.apk
29-
app: ./Payload.ipa #For running local tests
29+
app: ../build/output/iOS/IPA/Payload.ipa #For running local tests
3030

3131
# =======================================
3232
# Platforms (Browsers / Devices to test)

0 commit comments

Comments
 (0)