Skip to content

feat: add Maestro e2e tests for RN #9

feat: add Maestro e2e tests for RN

feat: add Maestro e2e tests for RN #9

Workflow file for this run

name: End-to-End Tests for React Native
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- 'main'
jobs:
e2e-tests:
runs-on: macos-latest
strategy:
matrix:
rnapp: [
"chat-rn",
]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Source Code
uses: ./.github/actions/source-code/
- name: Pnpm Build
run: pnpm turbo build --filter="./packages/*"
- name: iOS Simulator
uses: futureware-tech/simulator-action@v4
with:
os: iOS
wait_for_boot: true
- name: ${{ matrix.rnapp }} App Build
working-directory: ./examples/${{ matrix.rnapp }}
run: |
pnpm install
pnpm build
pnpm ios &
- name: Install Maestro
run: |
curl -fsSL "https://get.maestro.mobile.dev" | bash
- name: ${{ matrix.rnapp }} App Test
working-directory: ./examples/${{ matrix.rnapp }}
run: |
export PATH="$PATH":"$HOME/.maestro/bin"
export MAESTRO_DRIVER_STARTUP_TIMEOUT=60000 # setting 60 seconds
maestro test test/e2e/flow.yml