Skip to content

Reanimated compatibility check [Nightly] #5413

Reanimated compatibility check [Nightly]

Reanimated compatibility check [Nightly] #5413

name: Reanimated compatibility check [Nightly]
env:
YARN_ENABLE_HARDENED_MODE: 0
on:
pull_request:
types: [opened, synchronize, labeled, unlabeled]
schedule:
- cron: '37 19 * * *'
workflow_call:
workflow_dispatch:
jobs:
read-compatibility-json:
if: github.repository == 'software-mansion/react-native-reanimated'
runs-on: ubuntu-latest
outputs:
react-native-versions: ${{ steps.set-outputs.outputs.react-native-versions }}
steps:
- uses: actions/checkout@v4
- name: Read compatibility.json
run: node .github/workflows/helper/read-compatibility.js
- name: Set outputs
id: set-outputs
run: |
cat /tmp/react-native-versions.json >> $GITHUB_OUTPUT
reanimated-compatibility-check-nightly:
if: ${{github.repository == 'software-mansion/react-native-reanimated' && (github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'Check compatibility'))}}
runs-on: ${{matrix.platform == 'iOS' && 'macos-15' || 'ubuntu-latest'}}
needs: read-compatibility-json
strategy:
matrix:
platform: ['iOS', 'Android']
mode: ['Debug', 'Release']
react-native-version: ${{ fromJson(needs.read-compatibility-json.outputs.react-native-versions) }}
fail-fast: false
env:
APP_NAME: app
concurrency:
group: react-native-nightly-reanimated-build-check-${{ matrix.react-native-version}}-${{matrix.platform}}-${{matrix.mode}}-${{github.ref}}
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK 18
if: ${{ matrix.platform == 'Android' }}
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '18'
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
- uses: ruby/setup-ruby@v1
if: ${{ matrix.platform == 'iOS' }}
with:
ruby-version: '3.3' # Not needed with a `.ruby-version` or `.tool-versions`
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Check if react-native version exists
id: check-react-native-version
run: |
if ! npm view react-native@${{ matrix.react-native-version }} dist-tags ; then
echo "React Native version ${{ matrix.react-native-version }} does not exist - Skipping..."
echo "SKIP_BUILD=true" >> $GITHUB_OUTPUT
fi
- name: Run Reanimated Compatibility Check
if: ${{ steps.check-react-native-version.outputs.SKIP_BUILD != 'true' }}
uses: ./.github/actions/reanimated-compatibility-check-build
with:
react-native-versions: ${{ matrix.react-native-version }}
platform: ${{ matrix.platform }}
mode: ${{ matrix.mode }}
github-sha: ${{ github.sha }}
app-name: ${{ env.APP_NAME }}