-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
57 lines (53 loc) · 1.76 KB
/
reanimated-common-validation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Reanimated Common validation
on:
push:
branches:
- main
paths:
- '.github/workflows/reanimated-common-validation.yml'
- 'packages/react-native-reanimated/scripts/cpplint.sh'
- 'packages/react-native-reanimated/scripts/validate-includes.sh'
- 'packages/react-native-reanimated/Common/cpp/**'
pull_request:
paths:
- '.github/workflows/reanimated-common-validation.yml'
- 'packages/react-native-reanimated/scripts/cpplint.sh'
- 'packages/react-native-reanimated/scripts/validate-includes.sh'
- 'packages/react-native-reanimated/Common/cpp/**'
merge_group:
branches:
- main
workflow_call:
workflow_dispatch:
jobs:
lint:
if: github.repository == 'software-mansion/react-native-reanimated'
name: cpplint
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.13]
env:
REANIMATED_DIR: packages/react-native-reanimated
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 python dependencies
run: |
python -m pip install --upgrade pip
pip install cpplint==1.6.1
- name: Install monorepo node dependencies
run: yarn install --immutable
- name: Build Reanimated
working-directory: ${{ env.REANIMATED_DIR }}
run: yarn build
- name: Lint Common
working-directory: ${{ env.REANIMATED_DIR }}
run: yarn lint:common
- name: Disallow DEBUG macros
working-directory: ${{ env.REANIMATED_DIR }}
run: |
! egrep -r '(#if DEBUG|#ifdef DEBUG)' Common/cpp/ apple/ android/src/main/cpp/