File tree Expand file tree Collapse file tree 2 files changed +71
-0
lines changed Expand file tree Collapse file tree 2 files changed +71
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Run Fantom Tests
2+ inputs :
3+ release-type :
4+ required : true
5+ description : The type of release we are building. It could be nightly, release or dry-run
6+ gradle-cache-encryption-key :
7+ description : " The encryption key needed to store the Gradle Configuration cache"
8+ runs :
9+ using : composite
10+ steps :
11+ - name : Install dependencies
12+ shell : bash
13+ run : |
14+ sudo apt update
15+ sudo apt install -y git cmake openssl
16+ - name : Setup git safe folders
17+ shell : bash
18+ run : git config --global --add safe.directory '*'
19+ - name : Setup node.js
20+ uses : ./.github/actions/setup-node
21+ - name : Install node dependencies
22+ uses : ./.github/actions/yarn-install
23+ - name : Set React Native Version
24+ shell : bash
25+ run : node ./scripts/releases/set-rn-artifacts-version.js --build-type ${{ inputs.release-type }}
26+ - name : Setup gradle
27+ uses : ./.github/actions/setup-gradle
28+ with :
29+ cache-read-only : " false"
30+ cache-encryption-key : ${{ inputs.gradle-cache-encryption-key }}
31+ - name : Restore Android ccache
32+ uses : actions/cache/restore@v4
33+ with :
34+ path : /github/home/.cache/ccache
35+ key : v1-ccache-android-${{ github.job }}-${{ github.ref }}
36+ restore-keys : |
37+ v1-ccache-android-${{ github.job }}-
38+ v1-ccache-android-
39+ - name : Show ccache stats
40+ shell : bash
41+ run : ccache -s -v
42+ - name : Prepare 3p dependencies with Gradle
43+ shell : bash
44+ run : (cd private/react-native-fantom && ./prepare.sh)
45+ - name : Build Fantom
46+ shell : bash
47+ run : (cd private/react-native-fantom && ./tester/build.sh)
48+ - name : Run Tests
49+ shell : bash
50+ run : yarn fantom
Original file line number Diff line number Diff line change @@ -388,6 +388,27 @@ jobs:
388388 hermes-version : ${{ needs.prepare_hermes_workspace.outputs.hermes-version }}
389389 react-native-version : ${{ needs.prepare_hermes_workspace.outputs.react-native-version }}
390390
391+ run_fantom_tests :
392+ runs-on : 8-core-ubuntu
393+ needs : [set_release_type]
394+ container :
395+ image : reactnativecommunity/react-native-android:latest
396+ env :
397+ TERM : " dumb"
398+ GRADLE_OPTS : " -Dorg.gradle.daemon=false"
399+ ORG_GRADLE_PROJECT_SIGNING_PWD : ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_PWD }}
400+ ORG_GRADLE_PROJECT_SIGNING_KEY : ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_KEY }}
401+ steps :
402+ - name : Checkout
403+ uses : actions/checkout@v4
404+ - name : Build Android
405+ uses : ./.github/actions/build-android
406+ with :
407+ release-type : ${{ needs.set_release_type.outputs.RELEASE_TYPE }}
408+ gradle-cache-encryption-key : ${{ secrets.GRADLE_CACHE_ENCRYPTION_KEY }}
409+ - name : Build and Test Fantom
410+ uses : ./.github/actions/run-fantom-tests
411+
391412 build_hermesc_windows :
392413 runs-on : windows-2025
393414 needs : prepare_hermes_workspace
You can’t perform that action at this time.
0 commit comments