Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI

on:
pull_request:
push:
branches: [main]

jobs:
validate:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y cmake socat

- name: Run validation
run: ./scripts/validate.sh
39 changes: 39 additions & 0 deletions scripts/validate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/usr/bin/env bash
# scripts/validate.sh — full build + test validation
#
# Runs the complete validation suite:
# 1. CMake configure (all preset, fresh)
# 2. CMake build (all preset, clean-first)
# 3. CTest
# 4. Gateway loopback test (requires socat)
# 5. Multinode test
#
# Usage: ./scripts/validate.sh
# Run from the repository root.

set -euo pipefail

REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$REPO_ROOT"

echo "=== 1/5 CMake configure (preset: all, fresh) ==="
cmake --preset all --fresh

echo ""
echo "=== 2/5 CMake build (preset: all, clean-first) ==="
cmake --build --preset all --clean-first

echo ""
echo "=== 3/5 CTest ==="
ctest --test-dir build

echo ""
echo "=== 4/5 Gateway loopback test ==="
./scripts/gateway_loopback_test.sh

echo ""
echo "=== 5/5 Multinode test ==="
./scripts/multinode_test.sh

echo ""
echo "=== All validation steps passed ==="
Loading