forked from vortexmakes/RKH
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (52 loc) · 1.61 KB
/
static-analyzer.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
51
52
53
54
name: static-code-analysis
on:
pull_request:
paths:
- '.github/workflows/static-analyzer.yml'
- 'source/fwk/**'
- 'source/mempool/**'
- 'source/queue/**'
- 'source/sm/**'
- 'source/sma/**'
- 'source/tmr/**'
- 'source/trc/**'
push:
branches:
- develop
paths:
- '.github/workflows/static-analyzer.yml'
- 'source/fwk/**'
- 'source/mempool/**'
- 'source/queue/**'
- 'source/sm/**'
- 'source/sma/**'
- 'source/tmr/**'
- 'source/trc/**'
jobs:
code-analysis:
runs-on: ubuntu-latest
container:
image: leanfrancucci/ceedling:latest
steps:
- uses: actions/checkout@v1
with:
submodules: recursive
- name: Execute Cppcheck analyzer
id: cppcheck-analysis
working-directory: tools/analyzer
run: ./cppcheck.sh cppcheck-report.xml
continue-on-error: true
- name: Upload analysis result
if: ${{ failure() }}
uses: actions/upload-artifact@master
with:
name: cppcheck-report.xml
path: tools/analyzer/cppcheck-report.xml
- name: Execute Uno analyzer
id: uno-analysis
working-directory: tools/analyzer
run: ./uno.sh
continue-on-error: true
- name: Check analysis result
if: steps.cppcheck-analysis.outcome == 'failure' && steps.uno-analysis.outcome == 'failure'
run: exit 1