Skip to content

Commit 28f1105

Browse files
committed
Install valgrind and run unit tests via valgrind in order to check for memory leaks
1 parent 16512d4 commit 28f1105

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: .github/workflows/unit-tests.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,17 @@ jobs:
2525
- name: Checkout
2626
uses: actions/checkout@v2
2727

28+
- name: Install valgrind
29+
run: |
30+
sudo apt-get install valgrind
31+
2832
- name: Run unit tests
2933
run: |
3034
mkdir "$BUILD_PATH"
3135
cd "$BUILD_PATH"
3236
cmake ..
3337
make
34-
bin/testArduinoIoTCloud
38+
valgrind --leak-check=yes bin/testArduinoIoTCloud
3539
3640
- name: Check code coverage
3741
run: |

0 commit comments

Comments
 (0)