Feat/add json reader #735
Workflow file for this run
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: Memory Leak Detection | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build_and_run_valgrind: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Dependencies | |
run: | | |
sudo apt update | |
sudo apt install build-essential | |
sudo apt install cmake | |
sudo apt install libgtest-dev | |
sudo apt install dos2unix | |
sudo apt install valgrind | |
sudo apt install m4 | |
- name: Setup Gtest | |
run: | | |
cd $(mktemp -d) | |
cmake /usr/src/googletest | |
make | |
sudo make install | |
cd - | |
- name: Checkout the repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
submodules: "true" | |
- name: Build | |
run: | | |
./scripts/create-debug-makefiles.sh | |
make | |
- name: Run Unit Tests | |
run: | | |
chmod +x ./scripts/run-valgrind-on-changes.sh | |
dos2unix ./scripts/run-valgrind-on-changes.sh | |
./scripts/run-valgrind-on-changes.sh |