Skip to content

Remove outdated code for unsupported React Native versions (#5979) #2112

Remove outdated code for unsupported React Native versions (#5979)

Remove outdated code for unsupported React Native versions (#5979) #2112

Workflow file for this run

name: Validate C++
on:
push:
branches:
- main
paths:
- '.github/workflows/validate-cpp.yml'
- 'scripts/cpplint.sh'
- 'Common/cpp/**'
- 'apple/native/**'
- 'android/src/main/cpp/**'
pull_request:
paths:
- '.github/workflows/validate-cpp.yml'
- 'scripts/cpplint.sh'
- 'Common/cpp/**'
- 'apple/native/**'
- 'android/src/main/cpp/**'
merge_group:
branches:
- main
jobs:
lint:
if: github.repository == 'software-mansion/react-native-reanimated'
name: cpplint
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install cpplint
- name: Run cpplint
run: |
scripts/cpplint.sh
- name: Disallow DEBUG macros
run: |
! egrep -r '(#if DEBUG|#ifdef DEBUG)' Common/cpp apple android/src/main/cpp