Skip to content

Add Valgrind to CI-job to search for possible memory-leaks #6

Add Valgrind to CI-job to search for possible memory-leaks

Add Valgrind to CI-job to search for possible memory-leaks #6

Workflow file for this run

name: Unittests CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Show compiler version
run: gcc --version
- name: Build and run tests
run: make test
- name: Run Valgrind to search for memory leaks
run: |
sudo apt-get update
sudo apt-get install -y valgrind
valgrind --leak-check=full --error-exitcode=1 ./build/bin/test_runner