Skip to content

Workflow file for this run

name: iOS Build and Simulator Startup Test
on:
push:
branches:
- main
paths-ignore:
- 'README.md'
pull_request:
branches:
- main
paths-ignore:
- 'README.md'
workflow_dispatch:
jobs:
build-and-test:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20.11.1'
- name: Install Yarn
run: npm install -g yarn
- name: Install dependencies
run: yarn install
- name: Install CocoaPods dependencies
run: |
cd ios
pod install
- name: Set up Xcode environment
run: |
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -license accept
- name: Build and Run iOS App in Simulator
run: |
npx react-native run-ios --simulator="iPhone 15 Pro"