chore: add github actions
All checks were successful
Run tests / test (push) Successful in 14s
Check valgrind / check-valgrind (push) Successful in 19s

This commit is contained in:
2025-09-09 09:49:22 +02:00
parent aa067bf002
commit 42686abc67
2 changed files with 35 additions and 0 deletions

19
.github/workflows/check-valgrind.yaml vendored Normal file
View File

@@ -0,0 +1,19 @@
name: Check valgrind
on:
push:
jobs:
check-valgrind:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v5
- name: Install build dependencies
run: sudo apt-get update && sudo apt-get install -y build-essential valgrind
- name: Build program
run: make
- name: Run valgrind
run: valgrind -s --leak-check=full --error-exitcode=1 ./bin/program

16
.github/workflows/run-tests.yaml vendored Normal file
View File

@@ -0,0 +1,16 @@
name: Run tests
on:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v5
- name: Install build dependencies
run: sudo apt-get update && sudo apt-get install -y build-essential
- name: Run tests
run: make test