1+ name : valgrind
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ unit_tests :
7+ runs-on : ${{ matrix.os }}
8+ strategy :
9+ matrix :
10+ os : [ubuntu-latest]
11+
12+ steps :
13+ - uses : actions/checkout@v4
14+
15+ - name : Install Valgrind
16+ run : sudo apt-get update && sudo apt-get install valgrind
17+
18+ - name : Create Build Environment
19+ run : cmake -E make_directory ${{runner.workspace}}/build
20+
21+ - name : Configure CMake
22+ shell : bash
23+ working-directory : ${{runner.workspace}}/build
24+ run : cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Debug -DALL_TESTS=ON
25+
26+ - name : Build
27+ working-directory : ${{runner.workspace}}/build
28+ shell : bash
29+ run : |
30+ cmake --build . --parallel
31+
32+ - name : Test
33+ working-directory : ${{runner.workspace}}/build
34+ shell : bash
35+ run : valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes -s ./bin/unit_tests
36+
37+ instance_tests :
38+ runs-on : ${{ matrix.os }}
39+ strategy :
40+ matrix :
41+ os : [ubuntu-latest]
42+
43+ steps :
44+ - uses : actions/checkout@v4
45+
46+ - name : Install Valgrind
47+ run : sudo apt-get update && sudo apt-get install valgrind
48+
49+ - name : Create Build Environment
50+ run : cmake -E make_directory ${{runner.workspace}}/build
51+
52+ - name : Configure CMake All
53+ shell : bash
54+ working-directory : ${{runner.workspace}}/build
55+ run : cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Debug -DALL_TESTS=ON
56+
57+ - name : Build All
58+ working-directory : ${{runner.workspace}}/build
59+ shell : bash
60+ run : |
61+ cmake --build . --parallel
62+
63+ - name : Test
64+ working-directory : ${{runner.workspace}}/build
65+ shell : bash
66+ run : valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes -s ctest -E unit.* --timeout 1000 --output-on-failure
0 commit comments