Skip to content

Commit

Permalink
ci: test maestro
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiKilian committed Dec 5, 2024
1 parent 9a04cbc commit 9cf5da7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
run: yarn react-native build-android

build-react-native-ios:
name: Build React Native iOS & Test with Detox
name: Build React Native iOS & Test with Maestro
needs: [lint-eslint, lint-tsc, test, codegen, build-library]
runs-on: macos-latest
timeout-minutes: 30
Expand All @@ -120,21 +120,27 @@ jobs:
- name: Setup
uses: ./.github/actions/setup

- name: Install Pod Dependencies
- name: Install Pods
working-directory: ./packages/react-native-app
run: yarn pod:install

- name: Install Detox Dependencies
- name: Build iOS
working-directory: ./packages/react-native-app
run: xcodebuild -workspace ios/MapLibreReactNativeExample.xcworkspace -scheme MapLibreReactNativeExample -configuration Release -sdk iphonesimulator -derivedDataPath ios/build

- name: Install Maestro
working-directory: ./packages/react-native-app
run: |
brew tap wix/brew
brew install applesimutils
yarn detox clean-framework-cache && yarn detox build-framework-cache
curl -Ls "https://get.maestro.mobile.dev" | bash
brew tap facebook/fb
brew install facebook/fb/idb-companion
- name: Build iOS
- name: Install on iOS Simulator
working-directory: ./packages/react-native-app
run: yarn detox build -c ios.sim.release
run: |
xcrun simctl boot "iPhone 16 Pro"
xcrun simctl install booted ./ios/build/Build/Products/Release-iphonesimulator/MapLibreReactNativeExample.app
- name: Test with Detox
- name: Test with Maestro
working-directory: ./packages/react-native-app
run: yarn detox test --debug-synchronization 200 -c ios.sim.release
run: maestro test e2e/show-map.yml
8 changes: 8 additions & 0 deletions packages/react-native-app/e2e/show-map.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
appId: org.maplibre.reactnative.example
---
- launchApp
- tapOn: "Map ›"
- tapOn: "Show Map ›"
- assertVisible: "Show Map"
- assertVisible: "Map"
- tapOn: "About this map"

0 comments on commit 9cf5da7

Please sign in to comment.