chore: add github actions
This commit is contained in:
19
.github/workflows/check-valgrind.yaml
vendored
Normal file
19
.github/workflows/check-valgrind.yaml
vendored
Normal 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
16
.github/workflows/run-tests.yaml
vendored
Normal 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
|
Reference in New Issue
Block a user