Skip to content

Commit

Permalink
Update Detox CI workflow: install detox-cli and react-native-cli, add…
Browse files Browse the repository at this point in the history
… Applesimutils installation, and set environment variables for Iterable API keys
  • Loading branch information
lposen committed Oct 16, 2024
1 parent 5b06aed commit 9b2f0ba
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/detox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,13 @@ jobs:
ruby-version: 2.6.10
bundler-cache: true

- name: Install ios-deploy
run: npm install -g ios-deploy
- name: Install ios-deploy, detox, react-native-cli
run: npm install -g ios-deploy detox-cli react-native-cli

- name: Install Applesimutils
run: |
brew tap wix/brew
brew install applesimutils
- name: Example App Yarn install
run: |
Expand All @@ -61,18 +66,6 @@ jobs:
pod install
cd ../..
- name: Doctor
run: |
cd example
npx react-native doctor
cd -
- name: Generate from xcode
run: |
cd example/ios
xcodebuild -workspace ReactNativeSdkExample.xcworkspace -configuration Debug -scheme ReactNativeSdkExample -destination 'generic/platform=iOS Simulator' -sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO CODE_SIGNING_REQUIRED=NO
cd -
- name: Build Detox
run: yarn example detox:ios:build

Expand Down Expand Up @@ -164,14 +157,17 @@ jobs:
run: yarn example detox:start &

- name: Run Detox tests
env:
ITBL_API_KEY: ${{secrets.ITERABLE_API_KEY}}
ITBL_ID: ${{secrets.ITBL_ID}}
run: yarn example detox:ios:test:ci -- ${{ matrix.test-file }}

- name: Upload Test Artifact - GitHub Action
if: failure()
uses: actions/upload-artifact@v4
with:
name: detox-ios-artifacts-${{ matrix.test-file }}
path: artifacts
path: example/artifacts
retention-days: 1

run-android-detox-tests:
Expand Down

0 comments on commit 9b2f0ba

Please sign in to comment.