From 1b2e94b9b84d08fcabc645c0692365ecd34c8e87 Mon Sep 17 00:00:00 2001 From: AKuHAK <621640+AKuHAK@users.noreply.github.com> Date: Thu, 24 Jun 2021 14:17:46 +0300 Subject: [PATCH] More verbose output for clang action --- .github/workflows/check-format.yml | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/.github/workflows/check-format.yml b/.github/workflows/check-format.yml index cdbdc31c3..6d58cc4b5 100644 --- a/.github/workflows/check-format.yml +++ b/.github/workflows/check-format.yml @@ -1,18 +1,29 @@ + name: CI-format-check on: push: + paths: + - '**.h' + - '**.c' + - '.github/workflows/check-format.yml' + - '.clang-format' pull_request: + paths: + - '**.h' + - '**.c' + - '.github/workflows/check-format.yml' + - '.clang-format' jobs: check-format: runs-on: ubuntu-latest - steps: - - name: Install dependencies - shell: bash - run: sudo apt-get install git make clang-format + steps: - uses: actions/checkout@v2 - - - name: Check format -> make format-check - run: make format-check + - uses: DoozyX/clang-format-lint-action@v0.12 + with: + source: '.' + extensions: 'h,c' + clangFormatVersion: 12 + inplace: False