Skip to content

Commit e3bcc37

Browse files
authored
ci: apply prebuilt wda (#1141)
1 parent 0887cc1 commit e3bcc37

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/functional-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ jobs:
6262
appium plugin install execute-driver
6363
nohup appium --use-plugins=images,execute-driver --relaxed-security --log-timestamp --log-no-colors > appium.log &
6464
65+
- run: |
66+
appium driver run xcuitest download-wda-sim --platform=ios --outdir=${{ github.workspace }}/wda
67+
name: Downloading prebuilt WDA
68+
6569
- name: Set up Python 3.12
6670
uses: actions/setup-python@v5
6771
with:
@@ -74,6 +78,8 @@ jobs:
7478
pipenv lock --clear
7579
pipenv install -d --system
7680
pytest ${{ matrix.test_targets.target}} --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
81+
env:
82+
LOCAL_PREBUILT_WDA: ${{ github.workspace }}/wda/WebDriverAgentRunner-Runner.app
7783
7884
- name: Save server output
7985
if: ${{ always() }}

test/functional/ios/helper/desired_capabilities.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ def get_desired_capabilities(app: Optional[str] = None) -> Dict[str, Any]:
3838
if app is not None:
3939
desired_caps['app'] = PATH(os.path.join('../../..', 'apps', app))
4040

41+
local_prebuilt_wda = os.getenv('LOCAL_PREBUILT_WDA')
42+
if local_prebuilt_wda:
43+
desired_caps['usePreinstalledWDA'] = True
44+
desired_caps['prebuiltWDAPath'] = local_prebuilt_wda
45+
4146
return desired_caps
4247

4348

0 commit comments

Comments
 (0)