Skip to content

Update react-navigation monorepo to v7 #899

Update react-navigation monorepo to v7

Update react-navigation monorepo to v7 #899

Workflow file for this run

name: Detox Integration Tests - iOS
on: [push]
jobs:
build:
name: Detox Integration Tests - iOS
# macos-13 fails with a Detox error about the iPhone 13 Pro device type:
# ```
# DetoxRuntimeError: Failed to find a device by type = "iPhone 13 Pro"
# HINT: Run 'applesimutils --list' to list your supported devices. It is advised only to specify a device type, e.g., "iPhone Xʀ" and avoid explicit search by OS version.
# ```
# However, applesimutils --list reports that a device with "iPhone 13 Pro" exists
runs-on: macos-13
timeout-minutes: 45
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 'latest'
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
# Sharp CLI enables faster image generation during prebuild
# https://github.com/expo/expo-cli/issues/2676
- name: Install Sharp CLI for faster image generation during prebuild
run: npm install --global sharp-cli
# CocoaPods version 1.15.0 has incompatibilities with React Native
# https://github.com/facebook/react-native/issues/42698
# https://github.com/expo/expo/issues/26828
# https://github.com/CocoaPods/CocoaPods/issues/12226
- name: Upgrade CocoaPods to version 1.15.2
run: |
gem uninstall cocoapods -v 1.15.0 --ignore-dependencies
gem install cocoapods -v 1.15.2
- name: Prepare files for xcodebuild command
run: pnpm expo prebuild --platform ios
- name: Build iOS app locally with xcodebuild
run: pnpm detox build --configuration ios
- name: Set up Simulator for Detox
run: |
brew tap wix/brew
brew install applesimutils
- name: Run tests
run: pnpm detox test --configuration ios
# Store any Detox screenshots on test failure
- uses: actions/upload-artifact@v4
if: failure()
with:
name: detox-artifacts
path: .detoxArtifacts