-
Notifications
You must be signed in to change notification settings - Fork 73
38 lines (32 loc) · 1.01 KB
/
Copy pathlinters.yml
File metadata and controls
38 lines (32 loc) · 1.01 KB
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
32
33
34
35
36
37
38
name: Linters
on:
pull_request:
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
nph:
name: Linters
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 2 # In PR, has extra merge commit: ^1 = PR, ^2 = base
- name: Check NPH formatting
uses: arnetheduck/nph-action@v1
with:
version: 0.7.0
options: "./. *.nim*"
fail: true
suggest: true
- name: Check clang-format (C/H files in cbind/)
run: |
find cbind/ \( -name "*.c" -o -name "*.h" \) -print0 | \
xargs -0 clang-format --dry-run --Werror --style=file:cbind/.clang-format
echo "All C/H files in cbind/ are properly formatted."
- name: Check License Header
uses: apache/skywalking-eyes/header@v0.8.0
with:
config: .github/.licenserc.yaml