Skip to content

Commit 634136b

Browse files
fix: update ios harness workflow
1 parent e8dff5a commit 634136b

1 file changed

Lines changed: 22 additions & 18 deletions

File tree

.github/workflows/test-ios-harness.yml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@ name: Test iOS Harness
33
on:
44
workflow_call:
55

6+
env:
7+
DEVICE_MODEL: 'iPhone 17 Pro'
8+
IOS_VERSION: '26.0'
9+
USE_CCACHE: 1
10+
DEVELOPER_DIR: /Applications/Xcode_26.1.0.app/Contents/Developer
611
jobs:
712
test-ios-harness:
813
name: Test iOS Harness
914
runs-on: macos-latest
1015
timeout-minutes: 60
1116
env:
12-
DEVELOPER_DIR: /Applications/Xcode_26.1.app/Contents/Developer
17+
DEVELOPER_DIR: env.DEVELOPER_DIR
1318

1419
steps:
1520
- name: Checkout
@@ -25,21 +30,20 @@ jobs:
2530
name: ios-app
2631
path: example/ios/build/Build/Products/Debug-iphonesimulator/
2732

28-
# Use official React Native Harness action
29-
- name: Run React Native Harness Tests
30-
uses: callstackincubator/react-native-harness/actions/ios@b5f855a048d085519a5faff60efa25aa70c3e32b
33+
- name: Setup iOS Simulator
34+
uses: futureware-tech/simulator-action@dab10d813144ef59b48d401cd95da151222ef8cd
3135
with:
32-
app: ios/build/Build/Products/Debug-iphonesimulator/MendixNativeExample.app
33-
runner: ios
34-
projectRoot: example
35-
packageManager: yarn
36-
37-
- name: Upload iOS test results
38-
if: always()
39-
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874
40-
with:
41-
name: ios-harness-test-results
42-
path: |
43-
example/test-results/
44-
example/coverage/
45-
retention-days: 7
36+
model: ${{ env.DEVICE_MODEL }}
37+
os: iOS
38+
os_version: ${{ env.IOS_VERSION }}
39+
wait_for_boot: true
40+
erase_before_boot: false
41+
42+
- name: Install app
43+
run: |
44+
xcrun simctl install booted example/ios/build/Build/Products/Debug-iphonesimulator/MendixNativeExample.app
45+
46+
- name: Run Harness E2E tests
47+
working-directory: example
48+
run: |
49+
bun run test:harness --harnessRunner ios

0 commit comments

Comments
 (0)