Skip to content

Commit

Permalink
ci: move test to turbo
Browse files Browse the repository at this point in the history
  • Loading branch information
Kotauror committed Dec 10, 2024
1 parent 1cc7fdb commit 77996aa
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 15 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,32 +92,22 @@ jobs:
run: |
yarn turbo run build:ios
test-swift:
test-ios:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup
- name: Setup
uses: ./.github/actions/setup

- name: Set up Xcode
run: |
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
xcodebuild -version
- name: Install cocoapods
run: |
cd example/ios
pod install
env:
NO_FLIPPER: 1

- name: Clear DerivedData
- name: test example for iOS
run: |
rm -rf ~/Library/Developer/Xcode/DerivedData
- name: Run unit tests swift
run: |
cd example/ios
xcodebuild clean test -workspace TicketmasterIgniteExample.xcworkspace -scheme TicketmasterIgniteExample -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 16' CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGN_ENTITLEMENTS="" CODE_SIGNING_ALLOWED=NO
yarn turbo run test:ios
3 changes: 2 additions & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"ios": "react-native run-ios",
"start": "react-native start",
"build:android": "cd android && ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a",
"build:ios": "cd ios && xcodebuild -workspace TicketmasterIgniteExample.xcworkspace -scheme TicketmasterIgniteExample -configuration Debug -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"
"build:ios": "cd ios && xcodebuild -workspace TicketmasterIgniteExample.xcworkspace -scheme TicketmasterIgniteExample -configuration Debug -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",
"test:ios": "cd ios && xcodebuild -workspace TicketmasterIgniteExample.xcworkspace -scheme TicketmasterIgniteExample -configuration Debug -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 clean test"
},
"dependencies": {
"@react-navigation/bottom-tabs": "^6.5.8",
Expand Down
14 changes: 14 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,20 @@
"!example/ios/Pods"
],
"outputs": []
},
"test:ios": {
"inputs": [
"package.json",
"*.podspec",
"ios",
"src/*.ts",
"src/*.tsx",
"example/package.json",
"example/ios",
"!example/ios/build",
"!example/ios/Pods"
],
"outputs": []
}
}
}

0 comments on commit 77996aa

Please sign in to comment.