From 796ead9044b03e259534eb76ec2e7be3be2b99a6 Mon Sep 17 00:00:00 2001 From: Blottiere Paul Date: Mon, 7 Feb 2022 17:09:39 +0100 Subject: [PATCH] Add clang-format github action --- .github/workflows/code_layout.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code_layout.yml b/.github/workflows/code_layout.yml index 954232a..c139a2d 100644 --- a/.github/workflows/code_layout.yml +++ b/.github/workflows/code_layout.yml @@ -7,8 +7,18 @@ on: pull_request: jobs: - code: - name: Code layout + c_code_layout: + name: C linter + runs-on: ubuntu-20.04 + steps: + - name: Check out repository code + uses: actions/checkout@v2 + - name: Install clang-format + run: sudo apt-get install clang-format + - name: Clang-format check + run: clang-format --dry-run --Werror --style=llvm lib/*.c lib/*.h lib/cunit/*.c lib/cunit/*.h + sql_code_layout: + name: SQL linter runs-on: ubuntu-18.04 steps: - name: Install nvm