@@ -20,30 +20,6 @@ concurrency:
2020 cancel-in-progress : ${{ github.event_name == 'pull_request' }}
2121
2222jobs :
23- set_release_type :
24- runs-on : ubuntu-latest
25- if : github.repository == 'react/react-native'
26- outputs :
27- RELEASE_TYPE : ${{ steps.set_release_type.outputs.RELEASE_TYPE }}
28- env :
29- EVENT_NAME : ${{ github.event_name }}
30- REF : ${{ github.ref }}
31- steps :
32- - id : set_release_type
33- run : |
34- if [[ $EVENT_NAME == "schedule" ]]; then
35- echo "Setting release type to nightly"
36- echo "RELEASE_TYPE=nightly" >> $GITHUB_OUTPUT
37- elif [[ $EVENT_NAME == "push" && $REF == refs/tags/v* ]]; then
38- echo "Setting release type to release"
39- echo "RELEASE_TYPE=release" >> $GITHUB_OUTPUT
40- else
41- echo "Setting release type to dry-run"
42- echo "RELEASE_TYPE=dry-run" >> $GITHUB_OUTPUT
43- fi
44-
45- echo "Should I run E2E tests? ${{ inputs.run-e2e-tests }}"
46-
4723 check_code_changes :
4824 runs-on : ubuntu-latest
4925 if : github.repository == 'react/react-native'
@@ -100,29 +76,25 @@ jobs:
10076
10177 test_android :
10278 name : Android
103- needs : [set_release_type, check_code_changes]
79+ needs : check_code_changes
10480 if : |
10581 needs.check_code_changes.outputs.any_code_change == 'true' &&
10682 needs.check_code_changes.outputs.should_test_android == 'true'
10783 uses : ./.github/workflows/test-android.yml
108- with :
109- release-type : ${{ needs.set_release_type.outputs.RELEASE_TYPE }}
11084 secrets : inherit
11185
11286 test_ios :
11387 name : iOS
114- needs : [set_release_type, check_code_changes]
88+ needs : check_code_changes
11589 if : |
11690 needs.check_code_changes.outputs.any_code_change == 'true' &&
11791 needs.check_code_changes.outputs.should_test_ios == 'true'
11892 uses : ./.github/workflows/test-ios.yml
119- with :
120- release-type : ${{ needs.set_release_type.outputs.RELEASE_TYPE }}
12193 secrets : inherit
12294
12395 build_fantom_runner :
12496 runs-on : 8-core-ubuntu
125- needs : [set_release_type, check_code_changes, lint]
97+ needs : [check_code_changes, lint]
12698 if : needs.check_code_changes.outputs.any_code_change == 'true'
12799 container :
128100 image : reactnativecommunity/react-native-android:latest
@@ -141,7 +113,7 @@ jobs:
141113 - name : Build Fantom Runner
142114 uses : ./.github/actions/build-fantom-runner
143115 with :
144- release-type : ${{ needs.set_release_type.outputs.RELEASE_TYPE }}
116+ release-type : dry-run
145117 gradle-cache-encryption-key : ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}
146118
147119 run_fantom_tests :
0 commit comments