diff --git a/.github/workflows/e2e_android.yml b/.github/workflows/e2e_android.yml index b6ed804..34deea0 100644 --- a/.github/workflows/e2e_android.yml +++ b/.github/workflows/e2e_android.yml @@ -215,4 +215,4 @@ jobs: script: | $ANDROID_HOME/platform-tools/adb devices nohup sh -c "$ANDROID_HOME/platform-tools/adb logcat '*:D' > adb-log.txt" & - yarn test:android-release + sudo yarn test:android-release diff --git a/Example/testHotUpdate/detox.config.js b/Example/testHotUpdate/detox.config.js index a7d6218..29f7587 100644 --- a/Example/testHotUpdate/detox.config.js +++ b/Example/testHotUpdate/detox.config.js @@ -21,14 +21,12 @@ module.exports = { type: 'ios.app', binaryPath: 'ios/build/Build/Products/Release-iphonesimulator/testHotUpdate.app', - build: - 'export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -workspace ios/testHotUpdate.xcworkspace -UseNewBuildSystem=NO -scheme testHotUpdate -configuration Release -sdk iphonesimulator -derivedDataPath ios/build -quiet', + "build": "export RCT_NO_LAUNCH_PACKAGER=true && set -o pipefail | xcodebuild CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ -workspace ios/testHotUpdate.xcworkspace -scheme testHotUpdate -configuration Release -sdk iphonesimulator -derivedDataPath ios/build | xcbeautify", }, 'android.release': { type: 'android.apk', binaryPath: 'android/app/build/outputs/apk/release/app-release.apk', - build: - 'cd android ; ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release ; cd -', + build: "cd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && cd ..", }, }, devices: {