Add CI pipeline with Docker + CTest integration #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |