|
| 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 libssl-dev clang |
| 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: Run Fantom Tests |
| 43 | + shell: bash |
| 44 | + run: yarn fantom |
| 45 | + env: |
| 46 | + CC: clang |
| 47 | + CXX: clang++ |
| 48 | + - name: Upload test results |
| 49 | + if: ${{ always() }} |
| 50 | + |
| 51 | + with: |
| 52 | + name: run-fantom-tests-results |
| 53 | + compression-level: 1 |
| 54 | + path: | |
| 55 | + packages/react-native-gradle-plugin/react-native-gradle-plugin/build/reports |
| 56 | + packages/react-native-gradle-plugin/settings-plugin/build/reports |
| 57 | + packages/react-native/ReactAndroid/build/reports |
| 58 | + private/react-native-fantom/build/reports |
| 59 | + build/reports |
0 commit comments