From 6898fdf33004477bd65136794a5c55c5594b135c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20Emil=20Schulz=20=C3=98stergaard?= Date: Wed, 8 Apr 2026 15:16:52 +0200 Subject: [PATCH] ci: add github actions to run test suite --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..11af89c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + branches: [master] + +jobs: + build-and-test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + + - name: Install dependencies + run: sudo apt-get update && sudo apt-get install -y libpcap-dev + + - name: Configure + run: cmake -DTEST_ENABLE=on -B build + + - name: Build + run: cmake --build build + + - name: Test + run: ctest --test-dir build --output-on-failure