Skip to content

Commit d2443aa

Browse files
authored
new ci: analyzers
using StaticAnalysis from JacobDomagala (cppcheck, clang-tidy)
1 parent 2744683 commit d2443aa

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/analyzers.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Static Analysis
2+
3+
# Runs on 'push' events to all branches - output will be printed to the console.
4+
# May be run manually as well.
5+
# Also runs on PRs, output shown in comments.
6+
on: [push, workflow_dispatch, pull_request]
7+
8+
jobs:
9+
static_analysis:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@master
14+
15+
- name: Run Static Analysis
16+
uses: JacobDomagala/StaticAnalysis@master
17+
with:
18+
# note: c++ includes c checks
19+
language: c++
20+
21+
use_cmake: true
22+
23+
# Optional Clang-Tidy arguments
24+
clang_tidy_args: -checks='*,fuchsia-*,google-*,zircon-*,abseil-*,modernize-use-trailing-return-type'
25+
26+
# Optional Cppcheck arguments
27+
cppcheck_args: --enable=all --suppress=missingIncludeSystem

0 commit comments

Comments
 (0)