-
Notifications
You must be signed in to change notification settings - Fork 39
38 lines (35 loc) · 992 Bytes
/
ci.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
name: Test
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- name: Install conan
run: pip install conan
- name: Install GoogleTest
run: |
conan profile detect --force
conan install . --build=missing
- name: Build
run: |
cmake --preset conan-release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
cmake --build build/Release -j $(nproc)
- name: Test
run: ctest --test-dir build/Release --output-on-failure
- name: Install Cppcheck
run: |
sudo apt-get update
sudo apt-get install -y cppcheck
- name: Cppcheck
run: |
cppcheck \
--project=./build/Release/compile_commands.json \
--enable=all \
--template=gcc \
--file-filter="src/*.cpp" \
--suppress=checkersReport \
--suppress=missingIncludeSystem \
--error-exitcode=1