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