Баталов Артём Александрович #34
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
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 |