Bump ws from 6.2.2 to 6.2.3 (#240) #887
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: 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 |