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: 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" |