-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (33 loc) · 981 Bytes
/
cppcheck.yml
File metadata and controls
39 lines (33 loc) · 981 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
36
37
38
39
name: Static Analysis
on:
push:
branches: [main]
pull_request:
jobs:
cppcheck:
name: Run Cppcheck
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
lfs: true
- name: Install cppcheck
run: |
sudo apt-get update
sudo apt-get install -y cppcheck
- name: Run cppcheck
run: |
mkdir -p cppcheck-report
cppcheck --enable=all --inconclusive --quiet \
--output-file=cppcheck-report/cppcheck.txt \
$GITHUB_WORKSPACE/framework/src/ \
-I $GITHUB_WORKSPACE/include/ \
-I $GITHUB_WORKSPACE/framework/include/
cat cppcheck-report/cppcheck.txt
- name: Upload cppcheck report artifact
uses: actions/upload-artifact@v4
with:
name: cppcheck-report
path: cppcheck-report/cppcheck.txt