-
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (41 loc) · 953 Bytes
/
lint.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
name: lint
on:
push:
branches:
- master
paths:
- '**.h'
- '**.c'
jobs:
CodeCheck:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
with:
submodules: "recursive"
fetch-depth: 1
- name: cppcheck
uses: Qful/check-action@master
with:
github_token: ${{ secrets.SOC_XIN_TOCKEN }}
enable: all
inconclusive: disable
inline_suppression: disable
force_language: c
force: enable
max_ctu_depth: 2
std: c99
output_file: ./codecheck.txt
other_options: --bug-hunting --verbose
- name: report
uses: Qful/check-action@master
env:
GITHUB_TOKEN: ${{ secrets.SOC_XIN_TOCKEN }}
BRANCH_NAME: 'master'
- name: Upload
uses: actions/upload-artifact@v2
with:
name: code_check_report
path: codecheck.txt