-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (51 loc) · 1.33 KB
/
static-analysis.yml
File metadata and controls
60 lines (51 loc) · 1.33 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Static Analysis
on:
pull_request:
branches:
- '*'
workflow_dispatch:
permissions:
contents: read
jobs:
cppcheck:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install cppcheck
run: |
sudo apt update
sudo apt install -y cppcheck
- name: Run cppcheck
run: |
cppcheck --enable=all \
--enable=performance \
--enable=style \
--enable=information \
--enable=portability \
--error-exitcode=1 \
--suppressions-list=.cppcheck.suppress \
--suppress=missingIncludeSystem \
--inline-suppr \
--inconclusive \
-I include \
include test
clang-tidy:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.13
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e external/devops
- name: Install clang-tidy and dependencies
run: |
cpp_checks --dirs include --dirs test