From 3c1b5a7662dfef4315a479370e0586fceab1a6c5 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Tue, 10 Mar 2026 15:39:51 +0100 Subject: [PATCH] Add GitHub Actions CI workflow for unit tests Triggers on push/PR to automated-testing branch. Installs cmake and build-essential, builds all test targets via cmake, and runs ctest --output-on-failure. Fails workflow on any test failure. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..ac25a35 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI + +on: + push: + branches: [automated-testing] + pull_request: + branches: [automated-testing] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install build dependencies + run: | + sudo apt-get update + sudo apt-get install -y cmake build-essential + + - name: Configure (cmake) + run: cmake -B build + + - name: Build test binaries + run: cmake --build build + + - name: Run tests + run: ctest --test-dir build --output-on-failure