Skip to content

Commit 5376958

Browse files
committed
1 parent e808194 commit 5376958

5 files changed

Lines changed: 1614 additions & 56 deletions

File tree

.github/workflows/harness-aws-device.yml

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -411,33 +411,19 @@ jobs:
411411
run: |
412412
set -euo pipefail
413413
414-
PLATFORM_PACKAGE_JSON="$(node -p "require.resolve('@react-native-harness/platform-apple/package.json')")"
415-
PLATFORM_APPLE_ROOT="$(dirname "$PLATFORM_PACKAGE_JSON")"
416-
417-
DERIVED_DATA="apps/simple-camera/ios/build/devicefarm/HarnessXCTestAgentDerivedData"
414+
PROJECT_ROOT="apps/simple-camera"
415+
DERIVED_DATA="$PROJECT_ROOT/.harness/xctest-agent/device"
418416
IPA_PATH="apps/simple-camera/ios/build/devicefarm/HarnessXCTestAgentUITests.ipa"
419-
PROJECT_PATH="$PLATFORM_APPLE_ROOT/xctest-agent/HarnessXCTestAgent.xcodeproj"
420-
421417
PAYLOAD_ROOT="$(mktemp -d)"
422418
PAYLOAD_DIR="$PAYLOAD_ROOT/Payload"
423419
424420
rm -rf "$DERIVED_DATA" "$IPA_PATH"
425-
mkdir -p "$DERIVED_DATA" "$(dirname "$IPA_PATH")" "$PAYLOAD_DIR"
421+
mkdir -p "$(dirname "$IPA_PATH")" "$PAYLOAD_DIR"
426422
427-
xcodebuild \
428-
-project "$PROJECT_PATH" \
429-
-scheme HarnessXCTestAgent \
430-
-configuration Debug \
431-
-sdk iphoneos \
432-
-destination generic/platform=iOS \
433-
-derivedDataPath "$DERIVED_DATA" \
434-
-showBuildTimingSummary \
435-
build-for-testing \
436-
CODE_SIGNING_ALLOWED=NO \
437-
CODE_SIGNING_REQUIRED=NO \
438-
CODE_SIGN_IDENTITY= \
439-
DEVELOPMENT_TEAM= \
440-
COMPILER_INDEX_STORE_ENABLE=NO | xcbeautify --renderer github-actions
423+
(
424+
cd "$PROJECT_ROOT"
425+
node ../../node_modules/react-native-harness/bin.js xctest build --destination device
426+
)
441427
442428
RUNNER_APP="$(find "$DERIVED_DATA/Build/Products/Debug-iphoneos" -maxdepth 1 -type d -name '*UITests-Runner.app' -print -quit)"
443429
test -n "$RUNNER_APP"

bun.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@
127127
},
128128
"patchedDependencies": {
129129
"react-native@0.84.0": "patches/react-native@0.84.0.patch",
130-
"@react-native-harness/platform-apple@1.2.0-rc.1": "patches/@react-native-harness%2Fplatform-apple@1.2.0-rc.1.patch"
130+
"@react-native-harness/platform-apple@1.2.0-rc.1": "patches/@react-native-harness%2Fplatform-apple@1.2.0-rc.1.patch",
131+
"@react-native-harness/cli@1.2.0-rc.1": "patches/@react-native-harness%2Fcli@1.2.0-rc.1.patch"
131132
},
132133
"version": "5.0.9"
133134
}

0 commit comments

Comments
 (0)