@@ -3,6 +3,10 @@ name: Test All
33on :
44 workflow_dispatch :
55 pull_request :
6+ paths-ignore :
7+ - ' **/*.md'
8+ - ' **/__docs__/**'
9+ - ' **/LICENSE'
610 push :
711 branches :
812 - main
@@ -20,80 +24,9 @@ concurrency:
2024 cancel-in-progress : ${{ github.event_name == 'pull_request' }}
2125
2226jobs :
23- check_code_changes :
24- runs-on : ubuntu-latest
25- if : github.repository == 'react/react-native'
26- outputs :
27- any_code_change : ${{ steps.filter_exclusions.outputs.any_code_change == 'true' || github.event_name != 'pull_request' }}
28- should_test_android : ${{ steps.filter_exclusions.outputs.should_test_android == 'true' || github.event_name != 'pull_request' }}
29- should_test_ios : ${{ steps.filter_exclusions.outputs.should_test_ios == 'true' || github.event_name != 'pull_request' }}
30- debugger_shell : ${{ steps.filter_inclusions.outputs.debugger_shell }}
31- steps :
32- - name : Checkout
33- uses : actions/checkout@v6
34- - name : Check for code changes (exclusion patterns)
35- uses : dorny/paths-filter@209e61402dbca8aa44f967535da6666b284025ed
36- id : filter_exclusions
37- with :
38- predicate-quantifier : every
39- filters : |
40- any_code_change:
41- - '**'
42- - '!**/__docs__/**'
43- - '!**/*.md'
44- - '!**/LICENSE'
45- should_test_android:
46- # Not an isolated iOS change
47- - '**'
48- - '!packages/react-native/React/**'
49- - '!packages/react-native/ReactApple/**'
50- - '!packages/react-native/**/*.m'
51- - '!packages/react-native/**/*.mm'
52- - '!packages/react-native/**/*.podspec'
53- - '!packages/rn-tester/RNTester/**'
54- - '!packages/rn-tester/RNTesterPods*/**'
55- - '!packages/rn-tester/Podfile*'
56- should_test_ios:
57- # Not an isolated Android change
58- - '**'
59- - '!gradle/**'
60- - '!gradle*'
61- - '!packages/gradle-plugin/**'
62- - '!packages/react-native/ReactAndroid/**'
63- - '!packages/react-native/**/*.java'
64- - '!packages/react-native/**/*.kt'
65- - '!packages/react-native/**/*.gradle*'
66- - '!packages/react-native-popup-menu-android/**'
67- - '!packages/rn-tester/android/**'
68- - name : Check for code changes (inclusion patterns)
69- uses : dorny/paths-filter@209e61402dbca8aa44f967535da6666b284025ed
70- id : filter_inclusions
71- with :
72- filters : |
73- debugger_shell:
74- - 'packages/debugger-shell/**'
75- - 'scripts/debugger-shell/**'
76-
77- test_android :
78- needs : check_code_changes
79- if : |
80- needs.check_code_changes.outputs.any_code_change == 'true' &&
81- needs.check_code_changes.outputs.should_test_android == 'true'
82- uses : ./.github/workflows/test-android.yml
83- secrets : inherit
84-
85- test_ios :
86- needs : check_code_changes
87- if : |
88- needs.check_code_changes.outputs.any_code_change == 'true' &&
89- needs.check_code_changes.outputs.should_test_ios == 'true'
90- uses : ./.github/workflows/test-ios.yml
91- secrets : inherit
92-
9327 build_fantom_runner :
9428 runs-on : 8-core-ubuntu
95- needs : [check_code_changes, lint]
96- if : needs.check_code_changes.outputs.any_code_change == 'true'
29+ needs : lint
9730 container :
9831 image : reactnativecommunity/react-native-android:latest
9932 env :
13568
13669 test_react_common_cxx :
13770 runs-on : 8-core-ubuntu
138- needs : [check_code_changes, lint]
139- if : needs.check_code_changes.outputs.any_code_change == 'true'
71+ needs : lint
14072 container :
14173 image : reactnativecommunity/react-native-android:latest
14274 env :
@@ -215,8 +147,7 @@ jobs:
215147
216148 test_js :
217149 runs-on : ubuntu-latest
218- needs : [check_code_changes, lint]
219- if : needs.check_code_changes.outputs.any_code_change == 'true'
150+ needs : lint
220151 strategy :
221152 fail-fast : false
222153 matrix :
@@ -231,8 +162,7 @@ jobs:
231162
232163 build_js_types :
233164 runs-on : ubuntu-latest
234- needs : [check_code_changes, lint]
235- if : needs.check_code_changes.outputs.any_code_change == 'true'
165+ needs : lint
236166 steps :
237167 - name : Checkout
238168 uses : actions/checkout@v6
@@ -246,21 +176,3 @@ jobs:
246176 - name : Validate generated types
247177 shell : bash
248178 run : yarn test-generated-typescript
249-
250- build_debugger_shell :
251- runs-on : macos-26
252- needs : check_code_changes
253- if : needs.check_code_changes.outputs.debugger_shell == 'true'
254- steps :
255- - name : Checkout
256- uses : actions/checkout@v6
257- - name : Setup Node.js
258- uses : ./.github/actions/setup-node
259- - name : Install dependencies
260- uses : ./.github/actions/yarn-install
261- - name : Build packages
262- shell : bash
263- run : yarn build --prepack
264- - name : Verify debugger-shell build
265- shell : bash
266- run : node scripts/debugger-shell/build-binary.js
0 commit comments