|
30 | 30 | outputs: |
31 | 31 | android: ${{ steps.platform.outputs.android == 'true' || steps.platform.outputs.protocol == 'true' || steps.infra.outputs.android == 'true' }} |
32 | 32 | swift: ${{ steps.platform.outputs.swift == 'true' || steps.platform.outputs.protocol == 'true' || steps.infra.outputs.swift == 'true' }} |
33 | | - reactNative: ${{ steps.platform.outputs.reactNative == 'true' || steps.platform.outputs.swift == 'true' || steps.platform.outputs.android == 'true' || steps.platform.outputs.protocol == 'true' || steps.infra.outputs.reactNative == 'true' }} |
| 33 | + reactNative: ${{ steps.platform.outputs.reactNative == 'true' || steps.platform.outputs.swift == 'true' || steps.platform.outputs.android == 'true' || steps.platform.outputs.protocol == 'true' || steps.infra.outputs.reactNativeCommon == 'true' || steps.infra.outputs.reactNativeIos == 'true' || steps.infra.outputs.reactNativeAndroid == 'true' }} |
| 34 | + reactNativeIos: ${{ steps.platform.outputs.reactNative == 'true' || steps.platform.outputs.swift == 'true' || steps.platform.outputs.protocol == 'true' || steps.infra.outputs.reactNativeCommon == 'true' || steps.infra.outputs.reactNativeIos == 'true' }} |
| 35 | + reactNativeAndroid: ${{ steps.platform.outputs.reactNative == 'true' || steps.platform.outputs.android == 'true' || steps.platform.outputs.protocol == 'true' || steps.infra.outputs.reactNativeCommon == 'true' || steps.infra.outputs.reactNativeAndroid == 'true' }} |
34 | 36 | web: ${{ steps.platform.outputs.web == 'true' || steps.infra.outputs.web == 'true' }} |
35 | 37 | steps: |
36 | 38 | - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 |
@@ -64,14 +66,10 @@ jobs: |
64 | 66 | - '.github/workflows/breaking-changes.yml' |
65 | 67 | - '.github/filters/**' |
66 | 68 | - '.github/workflows/ci.yml' |
67 | | - reactNative: |
68 | | - - 'Package.swift' |
69 | | - - 'Package.resolved' |
| 69 | + # Common React Native infra: JS-level jobs (jest, lint, packed |
| 70 | + # files) and shared config that should trigger all RN jobs. |
| 71 | + reactNativeCommon: |
70 | 72 | - '.github/workflows/rn-test.yml' |
71 | | - - '.github/workflows/rn-test-android.yml' |
72 | | - - '.github/workflows/rn-test-ios.yml' |
73 | | - - '.github/workflows/rn-build-android.yml' |
74 | | - - '.github/workflows/rn-build-ios.yml' |
75 | 73 | - '.github/workflows/rn-check-packed-files.yml' |
76 | 74 | - '.github/workflows/rn-lint.yml' |
77 | 75 | - '.github/workflows/rn-publish.yml' |
|
82 | 80 | - '.github/filters/**' |
83 | 81 | - '.github/workflows/breaking-changes.yml' |
84 | 82 | - '.github/workflows/ci.yml' |
| 83 | + # iOS-only RN infra: gates the macOS build/test jobs. |
| 84 | + reactNativeIos: |
| 85 | + - 'Package.swift' |
| 86 | + - 'Package.resolved' |
| 87 | + - '.github/workflows/rn-test-ios.yml' |
| 88 | + - '.github/workflows/rn-build-ios.yml' |
| 89 | + # Android-only RN infra: gates the gradle build/test jobs. |
| 90 | + reactNativeAndroid: |
| 91 | + - '.github/workflows/rn-test-android.yml' |
| 92 | + - '.github/workflows/rn-build-android.yml' |
85 | 93 | web: |
86 | 94 | - '.github/workflows/web.yml' |
87 | 95 | - '.github/actions/setup/**' |
@@ -133,25 +141,25 @@ jobs: |
133 | 141 | rn-test-android: |
134 | 142 | name: React Native |
135 | 143 | needs: changes |
136 | | - if: needs.changes.outputs.reactNative == 'true' |
| 144 | + if: needs.changes.outputs.reactNativeAndroid == 'true' |
137 | 145 | uses: ./.github/workflows/rn-test-android.yml |
138 | 146 |
|
139 | 147 | rn-test-ios: |
140 | 148 | name: React Native |
141 | 149 | needs: changes |
142 | | - if: needs.changes.outputs.reactNative == 'true' |
| 150 | + if: needs.changes.outputs.reactNativeIos == 'true' |
143 | 151 | uses: ./.github/workflows/rn-test-ios.yml |
144 | 152 |
|
145 | 153 | rn-build-android: |
146 | 154 | name: React Native |
147 | 155 | needs: changes |
148 | | - if: needs.changes.outputs.reactNative == 'true' |
| 156 | + if: needs.changes.outputs.reactNativeAndroid == 'true' |
149 | 157 | uses: ./.github/workflows/rn-build-android.yml |
150 | 158 |
|
151 | 159 | rn-build-ios: |
152 | 160 | name: React Native |
153 | 161 | needs: changes |
154 | | - if: needs.changes.outputs.reactNative == 'true' |
| 162 | + if: needs.changes.outputs.reactNativeIos == 'true' |
155 | 163 | uses: ./.github/workflows/rn-build-ios.yml |
156 | 164 |
|
157 | 165 | rn-check-packed-files: |
|
0 commit comments