Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,19 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-

# JVM unit tests (JUnit, Robolectric, MockWebServer) in android/src/test.
# They need no emulator or app, so run them before the APK build to fail early.
- name: Run native unit tests
working-directory: example/android
run: ./gradlew :mendix-native:testDebugUnitTest

- name: Upload native unit test reports
if: failure()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: android-unit-test-reports
path: android/build/reports/tests/testDebugUnitTest

# Build APK (only if not cached)
- name: Build APK with Gradle
working-directory: example
Expand Down
34 changes: 27 additions & 7 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,7 @@ jobs:
working-directory: example
run: yarn pod

# Build iOS app (only if not cached)
- name: Build iOS app for simulator
if: steps.cache-ios-app.outputs.cache-hit != 'true'
working-directory: example
run: yarn app:package:ios

# Setup simulator (after build)
# Setup simulator
- name: Launch iOS Simulator
run: |
# Install jq if not available
Expand All @@ -69,6 +63,32 @@ jobs:
# Launch simulator with our custom script
bash .github/scripts/launch-ios-simulator.sh "${{ env.DEVICE_MODEL }}" "${{ env.IOS_VERSION }}"

# XCTest unit tests in ios/Tests, installed by the MendixNative test spec in the Podfile.
# They need no app or Metro, so run them before the app build to fail early.
# The app build shares this derived data, so the pods aren't compiled again.
- name: Run native unit tests
working-directory: example/ios
run: |
xcodebuild test \
-workspace MendixNativeExample.xcworkspace \
-scheme MendixNative-Unit-Tests \
-destination "platform=iOS Simulator,name=${{ env.DEVICE_MODEL }},OS=${{ env.IOS_VERSION }}" \
-derivedDataPath build \
-resultBundlePath build/unit-tests.xcresult

- name: Upload native unit test results
if: failure()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: ios-unit-test-results
path: example/ios/build/unit-tests.xcresult

# Build iOS app (only if not cached)
- name: Build iOS app for simulator
if: steps.cache-ios-app.outputs.cache-hit != 'true'
working-directory: example
run: yarn app:package:ios

# Install app on simulator
- name: Install app on simulator
working-directory: example
Expand Down
280 changes: 0 additions & 280 deletions .yarn/patches/@op-engineering-op-sqlite-npm-15.2.5-936f5cf3a5.patch

This file was deleted.

Loading
Loading