Skip to content

Commit 8f0f8b3

Browse files
committed
Add GitHub Actions CI with Docker + CTest
1 parent d282499 commit 8f0f8b3

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

‎.github/workflows/ci.yml‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: KV-DB CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Build Docker image
16+
run: docker build -t kv-db .
17+
18+
- name: Run tests inside container
19+
run: docker run --rm kv-db ctest --output-on-failure

‎Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ COPY . .
1919

2020
# Run CMake and build the database
2121
RUN cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release && \
22-
cmake --build build --target KV_Database
22+
cmake --build build
2323

2424
# ==========================================
2525
# Stage 2: Minimal Runtime (Production-grade)

0 commit comments

Comments
 (0)