-
Notifications
You must be signed in to change notification settings - Fork 4
35 lines (32 loc) · 842 Bytes
/
lint.yml
File metadata and controls
35 lines (32 loc) · 842 Bytes
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
---
name: lint
"on":
push:
branches: [main]
pull_request:
jobs:
yamllint:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run yamllint
run: yamllint -f github .github/workflows/ .clang-*
clang-tidy:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run clang-tidy
run: |
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -B build
clang-tidy --quiet -p build --use-color src/*.?pp tests/*.?pp
clang-format:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run clang-format
run: |
clang-format -i include/tmp/* src/*.?pp tests/*.?pp
git diff --color --exit-code