Skip to content

Merge pull request #53 from objectstack-ai/copilot/update-mobile-acti… #41

Merge pull request #53 from objectstack-ai/copilot/update-mobile-acti…

Merge pull request #53 from objectstack-ai/copilot/update-mobile-acti… #41

Workflow file for this run

name: E2E Tests
on:
pull_request:
branches: [main, develop]
push:
branches: [main, develop]
workflow_dispatch:
permissions:
contents: read
jobs:
e2e-jest:
name: E2E Screen Tests
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Run E2E screen tests
run: npx jest --config jest.e2e.config.js --ci
e2e-maestro:
name: Maestro E2E (manual)
runs-on: macos-latest
if: github.event_name == 'workflow_dispatch'
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Install Maestro
run: |
curl -Ls "https://get.maestro.mobile.dev" | bash
echo "$HOME/.maestro/bin" >> $GITHUB_PATH
- name: Build Expo dev client
run: npx expo prebuild --platform ios --no-install
env:
EXPO_PUBLIC_API_URL: http://localhost:3000
- name: Run Maestro flows
run: maestro test .maestro/