Split Fantom workflow into separate build and test jobs (#54729)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/54729

Changelog: [Internal]

- Created new build-fantom-runner action to compile the Fantom runner binary
- Modified run-fantom-tests action to download and use pre-built binary
- Updated test-all.yml workflow to run build and test as separate jobs
- Removed build dependencies and ccache configuration from test job

Reviewed By: cortinico

Differential Revision: D88012198

fbshipit-source-id: cd1c91b18cccc3c62b9edbcbeb131e80551369f1
This commit is contained in:
Andrew Datsenko authored and meta-codesync[bot] committed 2026-03-09 23:21:17 -07:00
1 parent 621592d1f1
commit 37b6c089cb
4 files changed
+124 -60

No files matched your search

+16 -3
View File
@@ -338,7 +338,7 @@ jobs:
flavor: ${{ matrix.flavor }}
working-directory: /tmp/RNTestProject
run_fantom_tests:
build_fantom_runner:
runs-on: 8-core-ubuntu
needs: [set_release_type, check_code_changes, lint]
if: needs.check_code_changes.outputs.any_code_change == 'true'
@@ -356,12 +356,25 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Build and Test Fantom
uses: ./.github/actions/run-fantom-tests
- name: Build Fantom Runner
uses: ./.github/actions/build-fantom-runner
with:
release-type: ${{ needs.set_release_type.outputs.RELEASE_TYPE }}
gradle-cache-encryption-key: ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}
run_fantom_tests:
runs-on: 8-core-ubuntu
needs: [build_fantom_runner]
container:
image: reactnativecommunity/react-native-android:latest
env:
TERM: "dumb"
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Run Fantom Tests
uses: ./.github/actions/run-fantom-tests
build_android:
runs-on: 8-core-ubuntu
needs: [set_release_type, check_code_changes]