Preview only PR #1386
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |