Skip to content

Commit a768266

Browse files
fix: update Android and iOS harness workflows for API level and app structure verification
1 parent ad248d5 commit a768266

2 files changed

Lines changed: 25 additions & 9 deletions

File tree

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

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ on:
44
workflow_call:
55

66
env:
7-
DEVICE_API_LEVEL: '35'
7+
DEVICE_API_LEVEL: '34'
88
DEVICE_ARCH: 'x86_64'
9-
DEVICE_PROFILE: 'pixel_7'
10-
AVD_NAME: 'Pixel_8_API_35'
9+
DEVICE_TARGET: 'google_apis'
10+
AVD_NAME: 'Pixel_API_34'
1111

1212
jobs:
1313
test-android-harness:
@@ -38,6 +38,12 @@ jobs:
3838
name: android-apk
3939
path: example/android/app/build/outputs/apk/debug/
4040

41+
- name: Enable KVM
42+
run: |
43+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
44+
sudo udevadm control --reload-rules
45+
sudo udevadm trigger --name-match=kvm
46+
4147
- name: AVD cache
4248
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
4349
id: avd-cache
@@ -52,26 +58,29 @@ jobs:
5258
uses: reactivecircus/android-emulator-runner@b530d96654c385303d652368551fb075bc2f0b6b
5359
with:
5460
api-level: ${{ env.DEVICE_API_LEVEL }}
61+
target: ${{ env.DEVICE_TARGET }}
5562
arch: ${{ env.DEVICE_ARCH }}
56-
profile: ${{ env.DEVICE_PROFILE }}
57-
disk-size: 1G
58-
heap-size: 1G
63+
ram-size: 4096M
64+
disk-size: 6G
5965
force-avd-creation: false
6066
avd-name: ${{ env.AVD_NAME }}
6167
disable-animations: true
62-
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
68+
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -memory 4096
6369
script: echo "Generated AVD snapshot for caching."
6470

6571
- name: Run Harness E2E tests
6672
uses: reactivecircus/android-emulator-runner@b530d96654c385303d652368551fb075bc2f0b6b
6773
with:
6874
working-directory: example
6975
api-level: ${{ env.DEVICE_API_LEVEL }}
76+
target: ${{ env.DEVICE_TARGET }}
7077
arch: ${{ env.DEVICE_ARCH }}
78+
ram-size: 4096M
7179
force-avd-creation: false
7280
avd-name: ${{ env.AVD_NAME }}
7381
disable-animations: true
74-
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
82+
emulator-boot-timeout: 900
83+
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -memory 4096
7584
script: |
7685
adb install -r "./android/app/build/outputs/apk/debug/app-debug.apk"
7786
yarn harness:android

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,14 @@ jobs:
3131
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
3232
with:
3333
name: ios-app
34-
path: example/ios/build/Build/Products/Debug-iphonesimulator/
34+
path: example/ios/build/Build/Products/Debug-iphonesimulator/MendixNativeExample.app
35+
36+
- name: Verify app structure
37+
run: |
38+
echo "Contents of download directory:"
39+
ls -la example/ios/build/Build/Products/Debug-iphonesimulator/ || true
40+
echo "App bundle contents:"
41+
ls -la example/ios/build/Build/Products/Debug-iphonesimulator/MendixNativeExample.app || true
3542
3643
- name: Setup iOS Simulator
3744
uses: futureware-tech/simulator-action@dab10d813144ef59b48d401cd95da151222ef8cd

0 commit comments

Comments
 (0)