-
Notifications
You must be signed in to change notification settings - Fork 8
32 lines (27 loc) · 1.08 KB
/
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
name: CemrgApp Code Analysis
on: [pull_request]
jobs:
Code-Analysis:
runs-on: ubuntu-20.04
steps:
- name: Install missing packages
run: |
sudo apt update
sudo apt install cppcheck -y
pip3 install --upgrade setuptools
pip3 install pygithub
- name: Install Qt
run: |
sudo pip3 install aqtinstall
sudo aqt install --outputdir /Qt 5.12.10 linux desktop -m qtcharts qtnetworkauth qtpurchasing qtdatavis3d qtscript qtvirtualkeyboard qtwebengine qtwebglplugin
- name: Clone CemrgApp
uses: actions/checkout@v4
- name: Code Analysis
env:
COMMENT_TITLE: Code Analysis Results
PR_NUMBER: ${{ github.event.pull_request.number }}
REPORT_PR_CHANGES_ONLY: false
GITHUB_TOKEN: ${{ github.token }}
run: |
cppcheck --enable=warning,style,performance,portability --std=c++14 --language=c++ --force --quiet ${{ github.workspace }}/CemrgApp -I /Qt/5.12.10/gcc_64/include --output-file=analysis.txt
python3 ${{ github.workspace }}/.github/code_analysis.py -cc analysis.txt