Skip to content

Add CI pipeline with Docker + CTest integration #1

Add CI pipeline with Docker + CTest integration

Add CI pipeline with Docker + CTest integration #1

Workflow file for this run

name: KV-DB CI
on:
push:
pull_request:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
# ============================
# Build inside Docker (realistic environment)
# ============================
- name: Build Docker image
run: docker build -t kv-db .
# ============================
# Run tests inside container
# ============================
- name: Run unit tests (ctest)
run: docker run --rm kv-db ctest --output-on-failure