-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (27 loc) · 1.16 KB
/
ci.yml
File metadata and controls
36 lines (27 loc) · 1.16 KB
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
name: ci
on: [push, pull_request]
jobs:
check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Update packages list
run: sudo apt update
- name: Install packages
run: sudo apt install cppcheck python3-pip -y
- name: Install cpplint
run: pip3 install cpplint
- name: Run cppcheck (unused functions)
working-directory: ${{runner.workspace}}/${{github.event.repository.name}}
shell: bash
run: cppcheck --enable=unusedFunction --language=c++ $(find -name "*.h" -o -name "*.cpp")
continue-on-error: true
- name: Run cppcheck (warnings and preformance issues)
working-directory: ${{runner.workspace}}/${{github.event.repository.name}}
shell: bash
run: cppcheck --enable=warning,performance --language=c++ $(find -name "*.h" -o -name "*.cpp")
continue-on-error: true
- name: Run cpplint
working-directory: ${{runner.workspace}}/${{github.event.repository.name}}
shell: bash
run: $HOME/.local/bin/cpplint --filter=-legal/copyright,-build/include_subdir,-build/c++11,-build/include_order $(find -name "*.h" -o -name "*.cpp")