Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
ae72254
Update ci.yml
sunitaprajapati89 Jan 7, 2026
17bff5c
update: added arch
Jan 7, 2026
c329535
update : disabled HVF
Jan 7, 2026
4f4c3ca
refactor : refactored emulator-options
Jan 7, 2026
3e2b3ab
update : updated macos-15 to macos-15-intel for HV_UNSUPPORTED error
Jan 7, 2026
dd92d42
update: removed arch
Jan 7, 2026
fbfd58f
update: updated lockfile
Jan 7, 2026
6d26228
fix: fixed indentation issue
Jan 7, 2026
d47741a
fix: fixed e2e detox build step
Jan 7, 2026
6168db1
update: updated Detox build section
Jan 7, 2026
fe7a7a6
update: updated Detox-Build for e2e:ios
Jan 7, 2026
aa9de83
update: pinned xcode-version to 16.4
Jan 7, 2026
e1de337
update: updated device type for macos-15 runner
Jan 8, 2026
2af5ab7
update: updated avdName as API 21 is too old
Jan 8, 2026
d543d6f
update: changed API level back to 21
Jan 8, 2026
a30154d
update: updated API level to 30 due to pg install failure
Jan 8, 2026
948edf0
update: commented create AVD section
Jan 8, 2026
3b98997
update: updated target for macos-15 intel runner
Jan 8, 2026
4c64f43
fix: added some more config
Jan 8, 2026
29a3872
update : updated scripts
Jan 8, 2026
56e1b33
update: updated detox config file
Jan 8, 2026
df93813
Update: removed unused script from Detox - Test
Jan 8, 2026
c3dab54
update: added another permission flag to script
Jan 8, 2026
358dc31
update: added flag to disable permission
Jan 8, 2026
8367eed
update: reverted changes as issue still persist
Jan 8, 2026
4858027
update : added arch for android
Jan 8, 2026
f1b66c1
Update ci.yml
Jan 8, 2026
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
95 changes: 61 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ jobs:
run: yarn test --coverage

run-e2e-ios:
runs-on: 'macos-13'
runs-on: 'macos-15'
env:
YARN_ENABLE_HARDENED_MODE: 0
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
xcode-version: '16.4'
- name: Install applesimutils
run: |
HOMEBREW_NO_AUTO_UPDATE=1 brew tap wix/brew >/dev/null
Expand All @@ -66,24 +66,34 @@ jobs:
cache: yarn
# End workaround

- name: Bootstrap
run: yarn install && yarn e2e install && yarn e2e pods
- name: Bootstrap (NO_FLIPPER)
run: |
yarn install
yarn e2e install
cd examples/E2E/ios
rm -rf Pods Podfile.lock
NO_FLIPPER=1 pod install --repo-update

- name: Bundle Build
run: yarn build

- name: Detox - Build
run: RCT_NO_LAUNCH_PACKAGER=1 yarn e2e build:ios
run: |
RCT_NO_LAUNCH_PACKAGER=1 \
EXCLUDED_ARCHS=x86_64 \
ONLY_ACTIVE_ARCH=YES \
yarn e2e build:ios


- name: Detox - Test
run: yarn e2e test:ios

run-e2e-android:
runs-on: 'macos-13' # This is important, linux cannot run the emulator graphically for e2e tests
runs-on: 'macos-15-intel' # This is important, linux cannot run the emulator graphically for e2e tests
strategy:
matrix:
api-level: [21]
profile: ['pixel_xl']
api-level: [30]
profile: ['pixel_3a']
env:
YARN_ENABLE_HARDENED_MODE: 0
steps:
Expand All @@ -102,27 +112,34 @@ jobs:
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}

- name: AVD cache
uses: actions/cache@v4
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ matrix.api-level }}-${{matrix.profile}}

- name: create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
profile: ${{matrix.profile}}
avd-name: Pixel_API_21_AOSP
target: default
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false
script: echo "Generated AVD snapshot for caching."
# - name: AVD cache
# uses: actions/cache@v4
# id: avd-cache
# with:
# path: |
# ~/.android/avd/*
# ~/.android/adb*
# key: avd-${{ matrix.api-level }}-${{matrix.profile}}

# - name: create AVD and generate snapshot for caching
# if: steps.avd-cache.outputs.cache-hit != 'true'
# uses: reactivecircus/android-emulator-runner@v2
# with:
# api-level: ${{ matrix.api-level }}
# profile: ${{matrix.profile}}
# avd-name: Pixel_3a_API_30
# target: google_apis
# arch: x86
# force-avd-creation: false
# emulator-options: >
# -no-window
# -gpu swiftshader_indirect
# -noaudio
# -no-boot-anim
# -camera-back none
# -accel off
# disable-animations: false
# script: echo "Generated AVD snapshot for caching."

# Workaround for corepack enable in node
# Source: (https://github.com/actions/setup-node/issues/899#issuecomment-1828798029)
Expand Down Expand Up @@ -150,9 +167,19 @@ jobs:
with:
api-level: ${{ matrix.api-level }}
profile: ${{matrix.profile}}
avd-name: Pixel_API_21_AOSP
target: default
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
avd-name: Pixel_3a_API_30
target: google_apis
arch: x86
force-avd-creation: true
emulator-boot-timeout: 900
emulator-options: >
-no-window
-gpu swiftshader_indirect
-noaudio
-no-boot-anim
-camera-back none
disable-animations: true
script: yarn e2e test:android
script: |
adb wait-for-device
adb shell getprop sys.boot_completed
yarn e2e test:android
8 changes: 5 additions & 3 deletions examples/E2E/.detoxrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,21 @@ module.exports = {
simulator: {
type: 'ios.simulator',
device: {
type: 'iPhone 14'
type: 'iPhone 16'
}
},
attached: {
type: 'android.attached',
device: {
adbName: '.*'
adbName: '.*',
disablePermissions: true
}
},
emulator: {
type: 'android.emulator',
device: {
avdName: process.env.CI ? 'Pixel_API_21_AOSP': 'Pixel_3a_API_32'
avdName: process.env.CI ? 'Pixel_3a_API_30' : 'Medium_Phone_API_36.1',
disablePermissions: true
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3380,7 +3380,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@segment/analytics-react-native-plugin-amplitude-session@workspace:packages/plugins/plugin-amplitudeSession"
dependencies:
"@segment/analytics-react-native": "npm:^2.18.0"
"@segment/analytics-react-native": "npm:^2.21.4"
"@segment/analytics-rn-shared": "workspace:^"
"@segment/sovran-react-native": "npm:^1.1.0"
"@types/jest": "npm:^29.5.8"
Expand Down Expand Up @@ -3615,7 +3615,7 @@ __metadata:
languageName: unknown
linkType: soft

"@segment/analytics-react-native@npm:^2.18.0, @segment/analytics-react-native@workspace:packages/core":
"@segment/analytics-react-native@npm:^2.18.0, @segment/analytics-react-native@npm:^2.21.4, @segment/analytics-react-native@workspace:packages/core":
version: 0.0.0-use.local
resolution: "@segment/analytics-react-native@workspace:packages/core"
dependencies:
Expand Down
Loading