Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 5 additions & 30 deletions .github/workflows/test-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,6 @@ concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
set_release_type:
runs-on: ubuntu-latest
if: github.repository == 'react/react-native'
outputs:
RELEASE_TYPE: ${{ steps.set_release_type.outputs.RELEASE_TYPE }}
env:
EVENT_NAME: ${{ github.event_name }}
REF: ${{ github.ref }}
steps:
- id: set_release_type
run: |
if [[ $EVENT_NAME == "schedule" ]]; then
echo "Setting release type to nightly"
echo "RELEASE_TYPE=nightly" >> $GITHUB_OUTPUT
elif [[ $EVENT_NAME == "push" && $REF == refs/tags/v* ]]; then
echo "Setting release type to release"
echo "RELEASE_TYPE=release" >> $GITHUB_OUTPUT
else
echo "Setting release type to dry-run"
echo "RELEASE_TYPE=dry-run" >> $GITHUB_OUTPUT
fi

echo "Should I run E2E tests? ${{ inputs.run-e2e-tests }}"

check_code_changes:
runs-on: ubuntu-latest
if: github.repository == 'react/react-native'
Expand Down Expand Up @@ -240,7 +216,7 @@ jobs:

build_fantom_runner:
runs-on: 8-core-ubuntu
needs: [set_release_type, check_code_changes, lint]
needs: [check_code_changes, lint]
if: needs.check_code_changes.outputs.any_code_change == 'true'
container:
image: reactnativecommunity/react-native-android:latest
Expand All @@ -259,7 +235,7 @@ jobs:
- name: Build Fantom Runner
uses: ./.github/actions/build-fantom-runner
with:
release-type: ${{ needs.set_release_type.outputs.RELEASE_TYPE }}
release-type: dry-run
gradle-cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}

run_fantom_tests:
Expand Down Expand Up @@ -337,7 +313,7 @@ jobs:

build_android:
runs-on: 8-core-ubuntu
needs: [set_release_type, check_code_changes]
needs: check_code_changes
if: |
needs.check_code_changes.outputs.any_code_change == 'true' &&
needs.check_code_changes.outputs.should_test_android == 'true'
Expand All @@ -358,7 +334,7 @@ jobs:
- name: Build Android
uses: ./.github/actions/build-android
with:
release-type: ${{ needs.set_release_type.outputs.RELEASE_TYPE }}
release-type: dry-run
gradle-cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}

test_e2e_android_rntester:
Expand Down Expand Up @@ -395,7 +371,6 @@ jobs:
runs-on: 8-core-ubuntu
needs:
[
set_release_type,
check_code_changes,
build_android,
prebuild_apple_dependencies,
Expand Down Expand Up @@ -423,7 +398,7 @@ jobs:
- name: Build NPM Package
uses: ./.github/actions/build-npm-package
with:
release-type: ${{ needs.set_release_type.outputs.RELEASE_TYPE }}
release-type: dry-run
gradle-cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}
skip-apple-prebuilts: ${{ needs.check_code_changes.outputs.should_test_ios == 'false' }}

Expand Down
Loading