-
Notifications
You must be signed in to change notification settings - Fork 25
38 lines (29 loc) · 1.1 KB
/
analyze.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
# GH Action: Analyze
# Runs various code analysis tools on the codebase
name: analyze
on: [push, pull_request]
jobs:
clang-format:
if: false # Disabled until a .clang-format style guide is established
name: clang-format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download submodules
run: git submodule update --init --recursive
- name: Run style check with clang-format
uses: jidicula/[email protected]
with:
clang-format-version: '13'
check-path: 'rythe'
cppcheck:
name: cppcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download submodules
run: git submodule update --init --recursive
- name: Get cppcheck
run: DEBIAN_FRONTEND=noninteractive sudo apt-get update -yqq --allow-releaseinfo-change -o::Dpkg::Use-Pty=0 && DEBIAN_FRONTEND=noninteractive sudo apt-get install -yqq -o::Dpkg::Use-Pty=0 cppcheck
- name: cppcheck
run: cppcheck rythe/ --force --inline-suppr -ithird_party/ --xml --error-exitcode=1 2>&1 | python3 tools/cppcheck2github.py