1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

feat: CI测试

This commit is contained in:
steven 2023-04-03 11:18:31 +08:00
parent 94c177512e
commit ffb2bf4afa
3 changed files with 14 additions and 3 deletions

View File

@ -148,7 +148,7 @@ jobs:
export SKIP_BUNDLING=1
export RCT_NO_LAUNCH_PACKAGER=1
set -o pipefail
yarn build:ios-release
yarn build:ios-debug
ccache -s
shell: bash
@ -179,4 +179,4 @@ jobs:
- name: Detox Test
timeout-minutes: 60
run: yarn test:ios-release
run: yarn test:ios-debug

View File

@ -20,7 +20,8 @@ module.exports = {
'ios.debug': {
type: 'ios.app',
binaryPath: 'ios/build/Build/Products/Debug-iphonesimulator/AwesomeProject.app',
"build": "xcodebuild -workspace ios/AwesomeProject.xcworkspace -UseNewBuildSystem=NO -scheme AwesomeProject -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
build: "xcodebuild -workspace ios/AwesomeProject.xcworkspace -UseNewBuildSystem=NO -scheme AwesomeProject -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
start: "scripts/start-rn.sh ios",
},
'ios.release': {
type: 'ios.app',

View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
trap 'kill $RN_PID' EXIT
PLATFORM=$1
kill -9 $(lsof -i :8081 | awk '{print $2}' | tail -n +2) & npm start &
RN_PID=$!
sleep 2 && curl>/dev/null http://localhost:8081/index.bundle
wait $RN_PID