forked from CESNET/nemea-modules-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (25 loc) · 733 Bytes
/
cppcheck.yml
File metadata and controls
27 lines (25 loc) · 733 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
name: cppcheck-action-test
on: [workflow_call]
jobs:
build:
name: cppcheck-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: cppcheck
uses: deep5050/cppcheck-action@main
with:
std: c++17
inline_suppression: enable
output_file: 'cppcheck_report.txt'
enable: warning,performance,portability,style,information
other_options: --error-exitcode=1
- name: Print cppcheck_report.txt
if: failure()
run: cat cppcheck_report.txt
- name: Upload Artifact
if: failure()
uses: actions/upload-artifact@v4
with:
name: cppcheck_report
path: 'cppcheck_report.txt'