Monorepo [0/?] - move move github actions to root #334
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test V8 on Android nightly | |
env: | |
YARN_ENABLE_HARDENED_MODE: 0 | |
on: | |
pull_request: | |
paths: | |
- .github/workflows/build-v8-nightly.yml | |
- .github/workflows/helper/configureV8.js | |
schedule: | |
- cron: "37 19 * * *" | |
workflow_dispatch: | |
jobs: | |
build: | |
if: github.repository == 'software-mansion/react-native-reanimated' | |
runs-on: ubuntu-latest | |
concurrency: | |
group: build-v8-${{ github.ref }} | |
cancel-in-progress: true | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
with: | |
path: "reanimated_repo" | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "zulu" | |
java-version: "17" | |
- name: pwd | |
run: pwd | |
- name: ls | |
run: ls -la | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: "yarn" | |
- name: Create React Native app | |
working-directory: | |
run: npx react-native init app | |
- name: Setup Yarn | |
working-directory: app | |
run: yarn set version 4.1.1 --yarn-path | |
- name: Setup Yarn lockfile | |
working-directory: app | |
run: touch yarn.lock | |
- name: Echo yarn version | |
working-directory: app | |
run: yarn --version | |
- name: Install dependencies | |
working-directory: app | |
run: yarn install | |
- name: Install test dependencies | |
working-directory: app | |
run: yarn add github:software-mansion/react-native-reanimated#${{ github.ref }} react-native-v8 v8-android-jit | |
- name: Configure V8 | |
run: node reanimated_repo/.github/workflows/helper/configureV8.js | |
- name: Build Android app | |
working-directory: app/android | |
run: ./gradlew assembleDebug --console=plain |