diff --git a/.github/workflows/check-valgrind.yaml b/.github/workflows/check-valgrind.yaml new file mode 100644 index 0000000..f4186ed --- /dev/null +++ b/.github/workflows/check-valgrind.yaml @@ -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 \ No newline at end of file diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml new file mode 100644 index 0000000..76231e0 --- /dev/null +++ b/.github/workflows/run-tests.yaml @@ -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 \ No newline at end of file