Skip to content

Commit 0f481a1

Browse files
committed
chore: add missing turborepo dependency and remove test workflow
1 parent b99a03b commit 0f481a1

File tree

5 files changed

+120
-20
lines changed

5 files changed

+120
-20
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,6 @@ jobs:
3131
- name: Typecheck files
3232
run: yarn typecheck
3333

34-
test:
35-
runs-on: ubuntu-latest
36-
37-
steps:
38-
- name: Checkout
39-
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
40-
41-
- name: Setup
42-
uses: ./.github/actions/setup
43-
44-
- name: Run unit tests
45-
run: yarn test --maxWorkers=2 --coverage
46-
4734
build-library:
4835
runs-on: ubuntu-latest
4936

@@ -98,6 +85,11 @@ jobs:
9885
run: |
9986
/bin/bash -c "yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --licenses > /dev/null"
10087
88+
- name: Prebuild expo app for Android
89+
if: env.turbo_cache_hit != 1
90+
run: |
91+
yarn example expo prebuild --platform android
92+
10193
- name: Cache Gradle
10294
if: env.turbo_cache_hit != 1
10395
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
@@ -153,13 +145,10 @@ jobs:
153145
with:
154146
xcode-version: ${{ env.XCODE_VERSION }}
155147

156-
- name: Install cocoapods
157-
if: env.turbo_cache_hit != 1 && steps.cocoapods-cache.outputs.cache-hit != 'true'
148+
- name: Prebuild expo app for iOS
149+
if: env.turbo_cache_hit != 1
158150
run: |
159-
cd example
160-
bundle install
161-
bundle exec pod repo update --verbose
162-
bundle exec pod install --project-directory=ios
151+
yarn example expo prebuild --platform ios
163152
164153
- name: Build example for iOS
165154
run: |

example/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
"scripts": {
66
"start": "expo start --dev-client",
77
"android": "expo run:android",
8-
"ios": "expo run:ios"
8+
"ios": "expo run:ios",
9+
"build:ios": "xcodebuild ONLY_ACTIVE_ARCH=YES -workspace ios/ReactNavigationExample.xcworkspace -UseNewBuildSystem=YES -scheme ReactNavigationExample -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build -quiet",
10+
"build:android": "cd android && ./gradlew assembleDebug -DtestBuildType=debug -Dorg.gradle.jvmargs=-Xmx4g"
911
},
1012
"dependencies": {
1113
"expo": "~54.0.32",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
"react-native": "0.81.5",
7878
"react-native-builder-bob": "^0.40.17",
7979
"release-it": "^19.0.4",
80+
"turbo": "^2.5.6",
8081
"typescript": "^5.9.2"
8182
},
8283
"peerDependencies": {

turbo.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"globalDependencies": [".nvmrc", ".yarnrc.yml"],
4+
"globalEnv": ["NODE_ENV"],
5+
"tasks": {
6+
"build:android": {
7+
"env": ["ANDROID_HOME", "ORG_GRADLE_PROJECT_newArchEnabled"],
8+
"inputs": [
9+
"package.json",
10+
"android",
11+
"!android/build",
12+
"src/*.ts",
13+
"src/*.tsx",
14+
"example/package.json"
15+
],
16+
"outputs": []
17+
},
18+
"build:ios": {
19+
"env": [
20+
"RCT_NEW_ARCH_ENABLED",
21+
"RCT_REMOVE_LEGACY_ARCH",
22+
"RCT_USE_RN_DEP",
23+
"RCT_USE_PREBUILT_RNCORE"
24+
],
25+
"inputs": [
26+
"package.json",
27+
"*.podspec",
28+
"ios",
29+
"src/*.ts",
30+
"src/*.tsx",
31+
"example/package.json"
32+
],
33+
"outputs": []
34+
}
35+
}
36+
}

yarn.lock

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10151,6 +10151,7 @@ __metadata:
1015110151
react-native: "npm:0.81.5"
1015210152
react-native-builder-bob: "npm:^0.40.17"
1015310153
release-it: "npm:^19.0.4"
10154+
turbo: "npm:^2.5.6"
1015410155
typescript: "npm:^5.9.2"
1015510156
peerDependencies:
1015610157
react: "*"
@@ -11451,6 +11452,77 @@ __metadata:
1145111452
languageName: node
1145211453
linkType: hard
1145311454

11455+
"turbo-darwin-64@npm:2.8.3":
11456+
version: 2.8.3
11457+
resolution: "turbo-darwin-64@npm:2.8.3"
11458+
conditions: os=darwin & cpu=x64
11459+
languageName: node
11460+
linkType: hard
11461+
11462+
"turbo-darwin-arm64@npm:2.8.3":
11463+
version: 2.8.3
11464+
resolution: "turbo-darwin-arm64@npm:2.8.3"
11465+
conditions: os=darwin & cpu=arm64
11466+
languageName: node
11467+
linkType: hard
11468+
11469+
"turbo-linux-64@npm:2.8.3":
11470+
version: 2.8.3
11471+
resolution: "turbo-linux-64@npm:2.8.3"
11472+
conditions: os=linux & cpu=x64
11473+
languageName: node
11474+
linkType: hard
11475+
11476+
"turbo-linux-arm64@npm:2.8.3":
11477+
version: 2.8.3
11478+
resolution: "turbo-linux-arm64@npm:2.8.3"
11479+
conditions: os=linux & cpu=arm64
11480+
languageName: node
11481+
linkType: hard
11482+
11483+
"turbo-windows-64@npm:2.8.3":
11484+
version: 2.8.3
11485+
resolution: "turbo-windows-64@npm:2.8.3"
11486+
conditions: os=win32 & cpu=x64
11487+
languageName: node
11488+
linkType: hard
11489+
11490+
"turbo-windows-arm64@npm:2.8.3":
11491+
version: 2.8.3
11492+
resolution: "turbo-windows-arm64@npm:2.8.3"
11493+
conditions: os=win32 & cpu=arm64
11494+
languageName: node
11495+
linkType: hard
11496+
11497+
"turbo@npm:^2.5.6":
11498+
version: 2.8.3
11499+
resolution: "turbo@npm:2.8.3"
11500+
dependencies:
11501+
turbo-darwin-64: "npm:2.8.3"
11502+
turbo-darwin-arm64: "npm:2.8.3"
11503+
turbo-linux-64: "npm:2.8.3"
11504+
turbo-linux-arm64: "npm:2.8.3"
11505+
turbo-windows-64: "npm:2.8.3"
11506+
turbo-windows-arm64: "npm:2.8.3"
11507+
dependenciesMeta:
11508+
turbo-darwin-64:
11509+
optional: true
11510+
turbo-darwin-arm64:
11511+
optional: true
11512+
turbo-linux-64:
11513+
optional: true
11514+
turbo-linux-arm64:
11515+
optional: true
11516+
turbo-windows-64:
11517+
optional: true
11518+
turbo-windows-arm64:
11519+
optional: true
11520+
bin:
11521+
turbo: bin/turbo
11522+
checksum: 10c0/eae8698697505de4df29e3aea7ac60b7a7a018cfe7b26f30131664a11d7a64ec2cca3fe4a0c91439d8ad583c266531f10620d31baad5a072550115f74bf041a0
11523+
languageName: node
11524+
linkType: hard
11525+
1145411526
"type-check@npm:^0.4.0, type-check@npm:~0.4.0":
1145511527
version: 0.4.0
1145611528
resolution: "type-check@npm:0.4.0"

0 commit comments

Comments
 (0)