Skip to content

test: cover BigInt view props on mount and update #1184

test: cover BigInt view props on mount and update

test: cover BigInt view props on mount and update #1184

Workflow file for this run

name: Harness iOS
concurrency:
group: harness-ios-${{ github.ref }}
cancel-in-progress: ${{ github.ref_name != 'main' }}
on:
workflow_dispatch:
inputs:
device_model:
description: "iOS Simulator device model"
required: false
default: "iPhone 17 Pro"
type: string
ios_version:
description: "iOS version"
required: false
default: "26.5"
type: string
xcode_version:
description: "Xcode version"
required: false
default: "26.5"
type: string
push:
branches:
- main
paths:
- ".github/workflows/harness-ios.yml"
- "apps/example/ios/**"
- "**/nitrogen/generated/shared/**"
- "**/nitrogen/generated/ios/**"
- "packages/react-native-nitro-test/cpp/**"
- "packages/react-native-nitro-test/ios/**"
- "packages/react-native-nitro-test-external/cpp/**"
- "packages/react-native-nitro-test-external/ios/**"
- "packages/react-native-nitro-modules/cpp/**"
- "packages/react-native-nitro-modules/ios/**"
- "packages/react-native-nitro-modules/src/**"
- "**/bun.lock"
- "**/Podfile.lock"
- "**/*.podspec"
- "**/react-native.config.js"
- "**/nitro.json"
- "apps/example/__tests__/**"
- "apps/example/src/getTests.ts"
- "apps/example/src/testing/**"
- "apps/example/jest.harness.config.mjs"
- "apps/example/package.json"
- "apps/example/rn-harness.config.mjs"
pull_request:
paths:
- ".github/workflows/harness-ios.yml"
- "apps/example/ios/**"
- "**/nitrogen/generated/shared/**"
- "**/nitrogen/generated/ios/**"
- "packages/react-native-nitro-test/cpp/**"
- "packages/react-native-nitro-test/ios/**"
- "packages/react-native-nitro-test-external/cpp/**"
- "packages/react-native-nitro-test-external/ios/**"
- "packages/react-native-nitro-modules/cpp/**"
- "packages/react-native-nitro-modules/ios/**"
- "packages/react-native-nitro-modules/src/**"
- "**/bun.lock"
- "**/Podfile.lock"
- "**/*.podspec"
- "**/react-native.config.js"
- "**/nitro.json"
- "apps/example/__tests__/**"
- "apps/example/src/getTests.ts"
- "apps/example/src/testing/**"
- "apps/example/jest.harness.config.mjs"
- "apps/example/package.json"
- "apps/example/rn-harness.config.mjs"
env:
# Device configuration - can be overridden by workflow_dispatch inputs
DEVICE_MODEL: ${{ github.event.inputs.device_model || 'iPhone 17 Pro' }}
IOS_VERSION: ${{ github.event.inputs.ios_version || '26.5' }}
XCODE_VERSION: ${{ github.event.inputs.xcode_version || '26.5' }}
DEVELOPER_DIR: /Applications/Xcode_${{ github.event.inputs.xcode_version || '26.5' }}.app/Contents/Developer
HARNESS_DEBUG: 1
jobs:
harness_ios_new:
name: Harness iOS (${{ matrix.sanitizer.name }}, new architecture)
runs-on: macOS-26
strategy:
fail-fast: false
matrix:
sanitizer:
- name: Default
xcodebuild_flags: ""
- name: ASan
xcodebuild_flags: "-enableAddressSanitizer YES"
- name: TSan
xcodebuild_flags: "-enableThreadSanitizer YES"
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 1
- uses: oven-sh/setup-bun@v2
- name: Install npm dependencies (bun)
run: bun install
- name: Install Ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
max-size: 1.5G
key: ${{ runner.os }}-${{ runner.arch }}-xcode${{ env.XCODE_VERSION }}-${{ matrix.sanitizer.name }}-ccache-example-ios
- name: Setup ccache behavior
run: |
{
echo "CCACHE_SLOPPINESS=clang_index_store,file_stat_matches,include_file_ctime,include_file_mtime,ivfsoverlay,pch_defines,modules,system_headers,time_macros"
echo "CCACHE_FILECLONE=true"
echo "CCACHE_DEPEND=true"
echo "CCACHE_INODECACHE=true"
} >> "$GITHUB_ENV"
- name: Setup Ruby (bundle)
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.2
bundler-cache: true
working-directory: apps/example
- name: Select Xcode ${{ env.XCODE_VERSION }}
run: sudo xcode-select -s "/Applications/Xcode_${{ env.XCODE_VERSION }}.app/Contents/Developer"
- name: Restore Pods cache
uses: actions/cache@v6
with:
path: apps/example/ios/Pods
key: ${{ runner.os }}-${{ runner.arch }}-pods-${{ hashFiles('bun.lock', 'apps/example/Gemfile.lock', 'apps/example/ios/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-${{ runner.arch }}-pods-
- name: Install Pods
working-directory: apps/example
run: bun pods
- name: Restore DerivedData cache
uses: actions/cache@v6
with:
path: apps/example/ios/build
key: ${{ runner.os }}-${{ runner.arch }}-xcode${{ env.XCODE_VERSION }}-${{ matrix.sanitizer.name }}-dd-${{ hashFiles('bun.lock', 'apps/example/Gemfile.lock', 'apps/example/ios/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-${{ runner.arch }}-xcode${{ env.XCODE_VERSION }}-${{ matrix.sanitizer.name }}-dd-
- name: Build iOS app
working-directory: apps/example/ios
run: |
set -o pipefail
SANITIZER_FLAGS="${{ matrix.sanitizer.xcodebuild_flags }}"
xcodebuild \
C_COMPILER_LAUNCHER="$(command -v ccache)" \
CLANG_ENABLE_EXPLICIT_MODULES_WITH_COMPILER_LAUNCHER=YES \
-derivedDataPath build -UseModernBuildSystem=YES \
-workspace NitroExample.xcworkspace \
-scheme NitroExample \
-sdk iphonesimulator \
-configuration Debug \
-destination 'generic/platform=iOS Simulator' \
${SANITIZER_FLAGS} \
-showBuildTimingSummary \
ARCHS=arm64 \
build \
CODE_SIGNING_ALLOWED=NO | xcbeautify --renderer github-actions
- name: Install Watchman
run: brew install watchman
- name: Run Harness E2E tests
uses: callstackincubator/react-native-harness@v1.4.1
env:
SIMCTL_CHILD_TSAN_OPTIONS: ${{ matrix.sanitizer.name == 'TSan' && 'halt_on_error=1:log_path=/tmp/nitro-tsan' || '' }}
with:
runner: ios
projectRoot: apps/example
app: ios/build/Build/Products/Debug-iphonesimulator/NitroExample.app
packageManager: bun
- name: Check TSan reports
if: always() && matrix.sanitizer.name == 'TSan'
shell: bash
run: |
shopt -s nullglob
reports=(/tmp/nitro-tsan.*)
if [ ${#reports[@]} -gt 0 ]; then
cat "${reports[@]}"
echo "::error::ThreadSanitizer reported an error."
exit 1
fi
- name: Upload TSan reports
if: always() && matrix.sanitizer.name == 'TSan'
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: tsan-reports-ios
path: /tmp/nitro-tsan.*
if-no-files-found: ignore