forked from JacobDomagala/StaticAnalysis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
50 lines (47 loc) · 1.98 KB
/
action.yml
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
name: "Run static analysis for C++ project"
description: "Runs cppcheck and clang-tidy on CMake based project. The result will be added either as PR comment, or as GitHub's output console"
inputs:
github_token:
description: 'Github token used for Github API requests'
default: ${{ github.token }}
pr_num:
description: 'Pull request number for which the comment will be created'
default: ${{ github.event.pull_request.number }}
repo:
description: 'Repository name'
default: ${{ github.repository }}
comment_title:
description: 'Title for comment with the raport. This should be an unique name'
default: Static analysis result
exclude_dir:
description: 'Directory which should be excluded from the raport'
apt_pckgs:
description: 'Additional (space separated) packages that need to be installed in order for project to compile'
init_script:
description: |
'Optional shell script that will be run before running CMake command.'
'This should be used, when the project requires some environmental set-up beforehand'
'Note. `apt_pckgs` will run before this script, just in case you need some packages installed'
cppcheck_args:
description: 'Cppcheck (space separated) arguments that will be used'
default: --enable=all --suppress=missingInclude --inline-suppr --inconclusive
clang_tidy_args:
description: 'clang-tidy (space separated) arguments that will be used'
default: ""
report_pr_changes_only:
description: 'Only post the issues found within the changes introduced in this Pull Request'
default: false
cmake_args:
description: 'Additional CMake arguments'
force_console_print:
description: 'Output the action result to console, instead of creating the comment'
default: false
verbose:
description: 'Verbose output. Used for debugging'
default: false
runs:
using: "docker"
image: "Dockerfile"
branding:
icon: "book-open"
color: "white"