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