Skip to content

Commit

Permalink
add execlusions
Browse files Browse the repository at this point in the history
  • Loading branch information
Al-khwarizmi-780 committed Apr 28, 2024
1 parent c10a0e6 commit b462f7e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/clang-format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,19 @@ jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
strategy:
matrix:
path:
- check: 'src'
exclude: 'third_party' # Exclude file paths containing "hello" or "world"
- check: 'tests'
exclude: '' # Nothing to exclude
steps:
- uses: actions/checkout@v3
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/[email protected]
with:
clang-format-version: '13'
check-path: 'src'
check-path: ${{ matrix.path['check'] }}
exclude-regex: ${{ matrix.path['exclude'] }}
fallback-style: 'Microsoft' # optional

0 comments on commit b462f7e

Please sign in to comment.