Mobile e2e tests #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Mobile e2e tests | |
on: | |
workflow_dispatch: | |
jobs: | |
mobile-e2e-tests: | |
timeout-minutes: 60 | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: 🦾 Create .env file | |
run: | | |
echo "APP_PATH=/Users/runner/Library/Developer/Xcode/DerivedData/App-blxepnvneboqwlgarzrdhnpgxqiw/Build/Products/Debug-iphonesimulator/App.app" > .env | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: npm ci | |
- name: 🔨 Build project | |
run: npm run build:cap | |
- name: 🔨 Build app for iOS simulator | |
run: xcodebuild -workspace ios/App/App.xcworkspace -scheme App -configuration Debug -sdk iphonesimulator17.0 CODE_SIGN_INDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | |
- name: 📱 List iOS simulator | |
run: xcrun simctl list | |
- name: 📱 Start iOS simulator app | |
run: open -a Simulator.app | |
- name: 📱 Start iOS simulator device | |
run: xcrun simctl boot "iPhone 15 Pro Max" | |
- name: 🏃🏼 Run tests for iOS simulator | |
run: npm run wdio:ios:15promax -- --spec ./tests/features/onboarding.feature |