mirror of
https://github.com/pgpointcloud/pointcloud.git
synced 2025-12-08 20:36:04 +00:00
Add clang-format github action
This commit is contained in:
parent
271c08ffde
commit
796ead9044
14
.github/workflows/code_layout.yml
vendored
14
.github/workflows/code_layout.yml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user