File: code_layout.yml

package info (click to toggle)
pgpointcloud 1.2.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,892 kB
  • sloc: sql: 40,767; ansic: 11,045; xml: 935; makefile: 297; cpp: 282; perl: 248; python: 178; sh: 92
file content (31 lines) | stat: -rw-r--r-- 782 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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-20.04
    steps:
      - name: Install nvm
        uses: actions/setup-node@v1
        with:
          node-version: '8'
      - name: Linter
        run: |
          npm install -g eclint@1.1.5
          eclint check * */* */cunit/*