Integrate clang-format into JS lint steps
This commit is contained in:
4
.github/actions/clang-format/action.yml
vendored
4
.github/actions/clang-format/action.yml
vendored
@@ -19,6 +19,6 @@ runs:
|
||||
working-directory: ${{ inputs.directory }}
|
||||
shell: bash
|
||||
run: |
|
||||
shopt -s globstar
|
||||
shopt -s extglob
|
||||
shopt -s nullglob
|
||||
clang-format-${{ inputs.version }} --dry-run --Werror **/*.cpp **/*.cc **/*.h **/*.hh **/*.m **/*.mm
|
||||
clang-format-${{ inputs.version }} --dry-run --Werror **/*.{h,hh,hpp,c,cpp,cc,m,mm}
|
||||
|
5
.github/workflows/validate-cpp.yml
vendored
5
.github/workflows/validate-cpp.yml
vendored
@@ -19,8 +19,3 @@ jobs:
|
||||
uses: ./.github/actions/clang-format
|
||||
with:
|
||||
directory: ./yoga
|
||||
|
||||
- name: clang-format (JavaScript Bindings)
|
||||
uses: ./.github/actions/clang-format
|
||||
with:
|
||||
directory: ./javascript
|
||||
|
Reference in New Issue
Block a user