-
Notifications
You must be signed in to change notification settings - Fork 3
60 lines (50 loc) · 1.59 KB
/
code-analysis.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
55
56
57
58
59
60
name: Static Code Analysis
on: [push]
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: install cppcheck and run tests
run: |
sudo apt-get install -y cppcheck
cd ./ContinuousIntegration
chmod +x ./run_c_static_code_analysis.sh
ls run_c_static_code_analysis.sh
./run_c_static_code_analysis.sh
- uses: actions/checkout@v1
- name: install flake8 and run tests
if: always()
run: |
sudo pip install flake8 flake8-html
cd ./ContinuousIntegration
chmod +x ./run_python_static_code_analysis.sh
ls
./run_python_static_code_analysis.sh
- uses: actions/checkout@v1
- name: install shellcheck and run tests
if: always()
run: |
sudo apt-get install -y shellcheck
cd ./ContinuousIntegration
chmod +x ./run_shellscripts_static_code_analysis.sh
ls
./run_shellscripts_static_code_analysis.sh
- name: Archive Python results
uses: actions/upload-artifact@v2
if: always()
with:
name: Report for Python sources
path: ./ContinuousIntegration/python_lint_report/
- name: Archive C results
uses: actions/upload-artifact@v2
if: always()
with:
name: Report for C sources
path: ./ContinuousIntegration/C_Lint_Report.txt
- name: Archive shell scripts results
uses: actions/upload-artifact@v2
if: always()
with:
name: Report for shell scripts sources
path: ./ContinuousIntegration/Shell_Script_Lint_Report.txt