generated from Rythe-Interactive/Rythe-Module-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (27 loc) · 1.02 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
# 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: 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 . --force --inline-suppr -ithird_party/ --xml --error-exitcode=1 2>&1 | python3 tools/cppcheck2github.py