-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (33 loc) · 1.07 KB
/
static-analisys.yml
File metadata and controls
35 lines (33 loc) · 1.07 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
name: Static-Analysis
on:
workflow_dispatch:
push:
paths-ignore:
- 'dep/**'
- 'doc/**'
jobs:
analize:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Update OS packages list
run: |
sudo apt-get update -yq
- name: Install analyzer
run: |
sudo apt-get install -y cppcheck python3
mkdir sa_results
- name: General checks
run: cppcheck --enable=all --inline-suppr --inconclusive --std=c++11 ./src -I ./src/include --output-file=./sa_results/general.txt --suppress=missingIncludeSystem --suppress=unmatchedSuppression:{} --suppress=unusedFunction:{}
- uses: actions/upload-artifact@v4
with:
name: Static_Analisys_Results
path: sa_results
- name: Add static analysis results to summary
run: |
echo '## 🧪 Static Analysis Results' >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY
cat ./sa_results/general.txt >> $GITHUB_STEP_SUMMARY
echo '```' >> $GITHUB_STEP_SUMMARY