Skip to content

Commit 9722480

Browse files
committed
Added valgrind and scan-build to CI [skip ci]
1 parent ae334ab commit 9722480

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ jobs:
2424
- run: g++ -std=c++17 -Wall -Wextra -Werror -o test/pqxx test/pqxx_test.cpp -lpqxx -lpq
2525
- run: test/pqxx
2626

27+
- if: ${{ startsWith(matrix.os, 'ubuntu') }}
28+
run: |
29+
sudo apt-get update
30+
sudo apt-get install valgrind
31+
valgrind --leak-check=yes test/pqxx
32+
33+
- if: ${{ startsWith(matrix.os, 'macos') }}
34+
run: /opt/homebrew/opt/llvm@18/bin/scan-build --status-bugs g++ -std=c++17 -o test/pqxx test/pqxx_test.cpp -lpqxx -lpq
35+
2736
# test install
2837
- run: cmake -S . -B build
2938
- run: cmake --build build

0 commit comments

Comments
 (0)