Skip to content

Commit

Permalink
[#47]: Update clang-tidy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobDomagala committed Oct 16, 2020
1 parent d468eb2 commit e0d2fe0
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Code quality check

on: [push]
on: [pull_request]

jobs:
clang-tidy:
Expand All @@ -12,6 +12,22 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Setup env
run: |
sudo apt-get update
- name: clang-tidy check
uses: muxee/clang-tidy-action@0.0.1-rc1
sudo apt-get install -y xorg-dev
sudo apt-get install -y libc++-9-dev
echo "::set-env name=CXX::clang++-9"
sudo apt-get install -y cppcheck
sudo apt-get install -y clang-tidy
cmake -E make_directory ${{runner.workspace}}/build
- name: cppcheck
working-directory: ${{runner.workspace}}/build
run: |
ls -r .
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
cppcheck src --enable=all --project=compile_commands.json -i$GITHUB_WORKSPACE/lib

0 comments on commit e0d2fe0

Please sign in to comment.