Support React Native 0.76 #120
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: Reanimated Android validation | |
env: | |
YARN_ENABLE_HARDENED_MODE: 0 | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows/reanimated-android-validation.yml' | |
- 'packages/react-native-reanimated/android/src/main/java/**' | |
- 'packages/react-native-reanimated/android/build.gradle' | |
- 'packages/react-native-reanimated/scripts/cpplint.sh' | |
- 'packages/react-native-reanimated/Common/cpp/**' | |
merge_group: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/reanimated-android-validation.yml' | |
- 'packages/react-native-reanimated/android/src/main/java/**' | |
- 'packages/react-native-reanimated/android/build.gradle' | |
- 'packages/react-native-reanimated/scripts/cpplint.sh' | |
- 'packages/react-native-reanimated/Common/cpp/**' | |
jobs: | |
check: | |
if: github.repository == 'software-mansion/react-native-reanimated' | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.7] | |
concurrency: | |
group: validate-java-${{ github.ref }} | |
cancel-in-progress: true | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Setup Java 17 | |
# Using older versions of Java might cause the lint step to throw | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'yarn' | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install cpplint | |
- name: Clear annotations | |
run: .github/workflows/helper/clear-annotations.sh | |
- name: Install monorepo node dependencies | |
run: yarn install --immutable | |
- name: Lint Android | |
working-directory: packages/react-native-reanimated | |
run: yarn lint:android |