mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 21:33:12 +08:00 
			
		
		
		
	feat: CI测试
This commit is contained in:
		
							
								
								
									
										4
									
								
								.github/workflows/e2e_ios.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/e2e_ios.yml
									
									
									
									
										vendored
									
									
								
							| @@ -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 | ||||
|   | ||||
| @@ -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', | ||||
|   | ||||
							
								
								
									
										10
									
								
								Example/testHotUpdate/scripts/start-rn.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										10
									
								
								Example/testHotUpdate/scripts/start-rn.sh
									
									
									
									
									
										Executable 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 | ||||
		Reference in New Issue
	
	Block a user
	 steven
					steven