File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed
Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Lint Clang
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+ merge_group :
11+ types :
12+ - checks_requested
13+
14+ jobs :
15+ lint :
16+ if : false # temporarily disable clang linting
17+ name : Run clang lint
18+ runs-on : ubuntu-latest
19+
20+ steps :
21+ - name : Checkout
22+ uses : actions/checkout@v4
23+
24+
25+ - name : Set up Node.js
26+ uses : actions/setup-node@v3
27+ with :
28+ node-version : ' 20'
29+
30+ - name : Install dependencies
31+ run : yarn install --frozen-lockfile
32+
33+ - name : Run clang lint
34+ run : yarn lint-clang
Original file line number Diff line number Diff line change 3636 "test" : " jest --passWithNoTests" ,
3737 "typecheck" : " tsc" ,
3838 "lint" : " eslint \" **/*.{js,ts,tsx}\" " ,
39+ "lint-clang:ios" : " find ios/ \\ ( -iname \" *.h\" -o -iname \" *.m\" -o -iname \" *.mm\" \\ ) | grep -v -e Pods -e build | xargs clang-format -i -n --Werror" ,
40+ "lint-clang:ios:fix" : " find ios/ \\ ( -iname \" *.h\" -o -iname \" *.m\" -o -iname \" *.mm\" \\ ) | grep -v -e Pods -e build | xargs clang-format -i" ,
41+ "lint-clang:android" : " find android/ \\ ( -iname \" *.h\" -o -iname \" *.cpp\" \\ ) | grep -v -e build | xargs clang-format -i -n --Werror" ,
42+ "lint-clang:android:fix" : " find android/ \\ ( -iname \" *.h\" -o -iname \" *.cpp\" \\ ) | grep -v -e build | xargs clang-format -i" ,
43+ "lint-clang" : " yarn lint-clang:ios && yarn lint-clang:android" ,
44+ "lint-clang:fix" : " yarn lint-clang:ios:fix && yarn lint-clang:android:fix" ,
3945 "clean" : " del-cli android/build example/android/build example/android/app/build example/ios/build lib" ,
4046 "prepare" : " bob build" ,
4147 "release" : " release-it" ,
You can’t perform that action at this time.
0 commit comments