From 972a46e6a3783d70a2fdff9202a1568d7d7bcb37 Mon Sep 17 00:00:00 2001 From: Gleb Linnik Date: Wed, 22 May 2024 01:12:25 +0300 Subject: [PATCH] Update clang-format.yml to run on `Tests` and `Sources` --- .github/workflows/clang-format.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index c62f50e4f..b056bd872 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -1,12 +1,13 @@ -name: clang-format Check +name: Check Format on: pull_request: paths: - 'Sources/**' + - 'Tests/**' - '.github/workflows/clang-format.yml' jobs: formatting-check: - name: Formatting Check + name: Run clang-format runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -14,4 +15,4 @@ jobs: uses: jidicula/clang-format-action@v4.12.0 with: clang-format-version: '18' - check-path: 'Sources' + include-regex: '(Tests|Sources)\/.*'