From b462f7e1714c179de8604b5a30c2ef59aa423a81 Mon Sep 17 00:00:00 2001 From: mohanadyoussef Date: Sun, 28 Apr 2024 23:32:36 +0200 Subject: [PATCH] add execlusions --- .github/workflows/clang-format-check.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/clang-format-check.yml b/.github/workflows/clang-format-check.yml index 98f768f..a69528f 100644 --- a/.github/workflows/clang-format-check.yml +++ b/.github/workflows/clang-format-check.yml @@ -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/clang-format-action@v4.11.0 with: clang-format-version: '13' - check-path: 'src' + check-path: ${{ matrix.path['check'] }} + exclude-regex: ${{ matrix.path['exclude'] }} fallback-style: 'Microsoft' # optional \ No newline at end of file