From 0e1fe62500ad2e412de8b24bfc430783bbdaa0a2 Mon Sep 17 00:00:00 2001 From: Alexander Chuprov Date: Wed, 6 Nov 2024 15:55:26 +0300 Subject: [PATCH] [#164] .forgejo: Add clang-format support Signed-off-by: Alexander Chuprov --- .forgejo/workflows/tests.yml | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/.forgejo/workflows/tests.yml b/.forgejo/workflows/tests.yml index 03616d2..d8cc992 100644 --- a/.forgejo/workflows/tests.yml +++ b/.forgejo/workflows/tests.yml @@ -27,31 +27,19 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - - name: Restore LLVM - id: cache-primes-restore - uses: actions/cache/restore@v4 - with: - path: | - bin/linters/clang/clang-format - key: ${{ runner.os }}-clang - + - name: Install deps + run: | + apt update + apt install -y clang-format - name: Run clang-format run: make clang - - name: Save LLVM Cache - id: cache-primes-save - uses: actions/cache/save@v4 - with: - path: | - bin/linters/clang/clang-format - key: ${{ runner.os }}-clang + - name: Print diff + run: git diff HEAD -# - name: Print diff -# run: git diff HEAD - -# - name: Check that nothing has changed -# run: git diff-index --exit-code HEAD + - name: Check that nothing has changed + run: git diff-index --exit-code HEAD tests: name: Tests