From 0672f87dd9529a141ef2b2cd12a2568d1741ffe6 Mon Sep 17 00:00:00 2001 From: Alexander Chuprov Date: Wed, 6 Nov 2024 16:28:11 +0300 Subject: [PATCH] [#164] .forgejo: Add clang-format support Signed-off-by: Alexander Chuprov --- .forgejo/workflows/tests.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.forgejo/workflows/tests.yml b/.forgejo/workflows/tests.yml index 42fe353..d8cc992 100644 --- a/.forgejo/workflows/tests.yml +++ b/.forgejo/workflows/tests.yml @@ -20,6 +20,27 @@ jobs: - name: Run linters run: make lint + clang-format: + name: Check clang-format + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install deps + run: | + apt update + apt install -y clang-format + + - name: Run clang-format + run: make clang + + - name: Print diff + run: git diff HEAD + + - name: Check that nothing has changed + run: git diff-index --exit-code HEAD + tests: name: Tests runs-on: ubuntu-latest