Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
2363742
Merge branch 'main' into capture-app-start-errors
krystofwoldrich Jun 11, 2025
2cba1c5
chore(sample-e2e): Migrate from Detox to Maestro
krystofwoldrich Jun 12, 2025
8632961
fix set dsn script path
krystofwoldrich Jun 12, 2025
a19c02d
Merge capture-app-start-errors-v7 into antonis/v7-detox-to-maestro-mi…
antonis Dec 15, 2025
1cc3572
Merge branch 'capture-app-start-errors-v7' into antonis/v7-detox-to-m…
antonis Dec 16, 2025
8518c78
fix: Update script paths after detox-to-maestro migration
antonis Dec 16, 2025
4239de8
Update script paths
antonis Dec 16, 2025
2eb589f
Fix tests
antonis Dec 16, 2025
a078aaa
Merge branch 'capture-app-start-errors-v7' into antonis/v7-detox-to-m…
antonis Dec 16, 2025
48f8c98
Fix test failure
antonis Dec 17, 2025
dcd62a8
Merge branch 'capture-app-start-errors-v7' into antonis/v7-detox-to-m…
antonis Dec 17, 2025
d160d7b
Fix idle issue
antonis Dec 17, 2025
7d2e90c
fix(e2e): Fix Maestro flows for captureMessage and captureSpaceflight…
antonis Dec 17, 2025
37179c0
Merge branch 'capture-app-start-errors-v7' into antonis/v7-detox-to-m…
antonis Dec 18, 2025
d466eb1
chore(e2e-sample): Increase Maestro driver startup timeout
antonis Dec 18, 2025
586ae51
increase timeout
antonis Dec 18, 2025
98ce402
Merge branch 'capture-app-start-errors-v7' into antonis/v7-detox-to-m…
antonis Dec 19, 2025
71cc388
Increase timeouts on Android too
antonis Dec 19, 2025
8eb6bb9
Merge branch 'capture-app-start-errors-v7' into antonis/v7-detox-to-m…
antonis Dec 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
139 changes: 4 additions & 135 deletions .github/workflows/sample-application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ concurrency:
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
MAESTRO_VERSION: '2.0.10'
MAESTRO_DRIVER_STARTUP_TIMEOUT: 90000 # Increase timeout from default 30s to 90s for CI stability
RN_SENTRY_POD_NAME: RNSentry
IOS_APP_ARCHIVE_PATH: sentry-react-native-sample.app.zip
ANDROID_APP_ARCHIVE_PATH: sentry-react-native-sample.apk.zip
Expand Down Expand Up @@ -82,7 +83,7 @@ jobs:
- uses: ruby/setup-ruby@v1
if: ${{ matrix.platform == 'ios' || matrix.platform == 'macos' }}
with:
working-directory: ${{ matrix.platform == 'ios' && env.REACT_NATIVE_SAMPLE_PATH || ' samples/react-native-macos' }}
working-directory: ${{ matrix.platform == 'ios' && env.REACT_NATIVE_SAMPLE_PATH || 'samples/react-native-macos' }}
ruby-version: '3.3.0' # based on what is used in the sample
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 1 # cache the installed gems
Expand Down Expand Up @@ -128,7 +129,7 @@ jobs:
export RN_ARCHITECTURE="${{ matrix.rn-architecture }}"
[[ "${{ matrix.build-type }}" == "production" ]] && export CONFIG='release' || export CONFIG='debug'

./scripts/detox/set-dsn-aos.mjs
./scripts/set-dsn-aos.mjs
./scripts/build-android.sh -PreactNativeArchitectures=x86

- name: Build iOS App
Expand All @@ -137,7 +138,7 @@ jobs:
run: |
[[ "${{ matrix.build-type }}" == "production" ]] && export CONFIG='Release' || export CONFIG='Debug'

./scripts/detox/set-dsn-ios.mjs
./scripts/set-dsn-ios.mjs
./scripts/build-ios.sh

- name: Build macOS App
Expand Down Expand Up @@ -198,138 +199,6 @@ jobs:
name: build-sample-${{ matrix.rn-architecture }}-${{ matrix.platform }}-${{ matrix.build-type }}-${{ matrix.ios-use-frameworks}}-logs
path: ${{ env.REACT_NATIVE_SAMPLE_PATH }}/${{ matrix.platform }}/*.log

test-detox:
name: ${{ matrix.job-name }}
runs-on: ${{ matrix.runs-on }}
needs: [diff_check, build]
if: ${{ needs.diff_check.outputs.skip_ci != 'true' }}
strategy:
# we want that the matrix keeps running, default is to cancel them if it fails.
fail-fast: false
matrix:
include:
- job-name: 'Test iOS Release Auto Init'
platform: ios
runs-on: macos-15
rn-architecture: 'new'
ios-use-frameworks: 'no-frameworks'
build-type: 'production'
test-command: 'yarn test-ios-auto' # tests native auto init from JS

- job-name: 'Test iOS Release Manual Init'
platform: ios
runs-on: macos-15
rn-architecture: 'new'
ios-use-frameworks: 'no-frameworks'
build-type: 'production'
test-command: 'yarn test-ios-manual'

- job-name: 'Test Android Release Manual Init'
platform: android
runs-on: ubuntu-latest
rn-architecture: 'new'
build-type: 'production'
test-command: 'yarn test-android-manual'

steps:
- uses: actions/checkout@v4

- name: Download iOS App Archive
if: ${{ matrix.platform == 'ios' }}
uses: actions/download-artifact@v4
with:
name: sample-rn-${{ matrix.rn-architecture }}-${{ matrix.build-type }}-${{ matrix.ios-use-frameworks}}-${{ matrix.platform }}
path: ${{ env.REACT_NATIVE_SAMPLE_PATH }}

- name: Download Android APK
if: ${{ matrix.platform == 'android' }}
uses: actions/download-artifact@v4
with:
name: sample-rn-${{ matrix.rn-architecture }}-${{ matrix.build-type }}-${{ matrix.platform }}
path: ${{ env.REACT_NATIVE_SAMPLE_PATH }}

- name: Unzip iOS App Archive
if: ${{ matrix.platform == 'ios' }}
working-directory: ${{ env.REACT_NATIVE_SAMPLE_PATH }}
run: unzip ${{ env.IOS_APP_ARCHIVE_PATH }}

- name: Unzip Android APK
if: ${{ matrix.platform == 'android' }}
working-directory: ${{ env.REACT_NATIVE_SAMPLE_PATH }}
run: unzip ${{ env.ANDROID_APP_ARCHIVE_PATH }}

- name: Enable Corepack
run: |
npm install -g corepack@0.29.4
corepack enable
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'
cache-dependency-path: yarn.lock

- name: Install JS Dependencies
run: yarn install

- name: Install Detox
run: npm install -g detox-cli@20.0.0

- name: Install Apple Simulator Utilities
if: ${{ matrix.platform == 'ios' }}
run: |
brew tap wix/brew
brew install applesimutils

- name: Setup KVM
if: ${{ matrix.platform == 'android' }}
shell: bash
run: |
# check if virtualization is supported...
sudo apt install -y --no-install-recommends cpu-checker coreutils && echo "CPUs=$(nproc --all)" && kvm-ok
# allow access to KVM to run the emulator
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' \
| sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm

- uses: futureware-tech/simulator-action@dab10d813144ef59b48d401cd95da151222ef8cd # pin@v4
if: ${{ matrix.platform == 'ios' }}
with:
# the same envs are used by Detox ci.sim configuration
model: ${{ env.IOS_DEVICE }}
os_version: ${{ env.IOS_VERSION }}

- name: Run Detox iOS Tests
if: ${{ matrix.platform == 'ios' }}
working-directory: ${{ env.REACT_NATIVE_SAMPLE_PATH }}
run: ${{ matrix.test-command }}

- name: Run tests on Android
if: ${{ matrix.platform == 'android' }}
env:
# used by Detox ci.android configuration
ANDROID_AVD_NAME: 'test' # test is default reactivecircus/android-emulator-runner name
ANDROID_TYPE: 'android.emulator'
uses: reactivecircus/android-emulator-runner@62dbb605bba737720e10b196cb4220d374026a6d # pin@v2.33.0
with:
api-level: ${{ env.ANDROID_API_LEVEL }}
force-avd-creation: false
disable-animations: true
disable-spellchecker: true
target: 'aosp_atd'
channel: canary # Necessary for ATDs
emulator-options: >
-no-window
-no-snapshot-save
-gpu swiftshader_indirect
-noaudio
-no-boot-anim
-camera-back none
-camera-front none
-timezone US/Pacific
working-directory: ${{ env.REACT_NATIVE_SAMPLE_PATH }}
script: ${{ matrix.test-command }}

test:
name: Test ${{ matrix.platform }} ${{ matrix.build-type }} REV2
runs-on: ${{ matrix.runs-on }}
Expand Down
206 changes: 0 additions & 206 deletions samples/react-native/e2e-detox/captureTransaction.test.ts

This file was deleted.

13 changes: 0 additions & 13 deletions samples/react-native/e2e-detox/jest.config.base.js

This file was deleted.

Loading
Loading