Skip to content

Commit

Permalink
feat: spike on maestro ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrauber committed Sep 11, 2024
1 parent c4510c3 commit 999c812
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 10 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/android-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,14 @@ jobs:

- run: ./gradlew assemble
working-directory: packages/react-native-app/android

- uses: dniHze/maestro-test-action@v1
- uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 34
arch: x86_64
ram-size: 2048M
target: default
script: maestro test --format=junit --output=report.xml --no-ansi example/.maestro
env:
MAESTRO_CLI_NO_ANALYTICS: true
19 changes: 9 additions & 10 deletions .github/workflows/ios-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,12 @@ jobs:
- name: Install Pod Dependencies
run: cd ios && pod --version && pod install

- name: Install Detox Dependencies
run: |
brew tap wix/brew
brew install applesimutils
- name: Build for detox
run: yarn detox build -c ios.sim.release

- name: Test with detox
run: yarn detox test --debug-synchronization 200 -c ios.sim.release
- uses: futureware-tech/simulator-action@v2
with:
model: "iPhone 14 Pro"
- uses: dniHze/maestro-test-action@v1
with:
flow: example/.maestro
report: report.xml
env:
MAESTRO_CLI_NO_ANALYTICS: true
15 changes: 15 additions & 0 deletions .maestro/Flow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
appId: com.rnmaplibreexample
---
- "launchApp"
# - "clearState"
- assertVisible: "React Native Mapbox GL"
# - tapOn: "While using the app"
- tapOn: "Map, "
- tapOn: "Show Map, "
- tapOn:
point: "50%,50%"
- assertVisible: "You pressed on the user location annotation"
- tapOn: "OK"
- tapOn:
id: "iconIcon"
- tapOn: ""

0 comments on commit 999c812

Please sign in to comment.