mirror of
https://github.com/pgpointcloud/pointcloud.git
synced 2026-01-18 16:04:21 +00:00
37 lines
1023 B
YAML
37 lines
1023 B
YAML
name: "Code layout"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
c_code_layout:
|
|
name: C linter
|
|
runs-on: ubuntu-22.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=file pgsql/*.c pgsql/*.h lib/*.c lib/*.cpp lib/*.hpp lib/*.h lib/cunit/*.c lib/cunit/*.h
|
|
sql_code_layout:
|
|
name: SQL linter
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
- name: Set up Python 3.10
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.10'
|
|
- name: Install SQLFluff
|
|
run: |
|
|
pip install sqlfluff
|
|
- name: Run SQLFluff lint
|
|
run: |
|
|
sqlfluff lint --dialect postgres ./pgsql/pointcloud.sql.in
|
|
sqlfluff lint --dialect postgres ./pgsql_postgis/pointcloud_postgis.sql.in
|