feat: Add CI environment setup and verification workflows with Docker support
Some checks failed
Test / test-frontend (pull_request) Successful in 43s
Test / lint-frontend (pull_request) Successful in 47s
Verify / get-ci-image (pull_request) Successful in 47s
Test / frontend-build (pull_request) Successful in 1m29s
Verify / verify-generated-db-entities (pull_request) Has been cancelled
Test / test-crates (pull_request) Has been cancelled
Test / lint-crates (pull_request) Has been cancelled

This commit is contained in:
GW_MC
2026-04-16 04:47:04 +00:00
parent 50f17fd69b
commit b5e42f2f30
9 changed files with 324 additions and 11 deletions

View File

@@ -25,7 +25,6 @@ setup-rust-tools:
cargo install sea-orm-cli@^2.0.0-rc --features "sqlx-postgres runtime-tokio-rustls"
cargo install cargo-watch
# Setup frontend dependencies
setup-frontend:
@echo "📦 Installing frontend dependencies..."
@@ -35,6 +34,12 @@ setup-frontend:
# Development Commands
# =============================================================================
# act
act *ARGS:
# run act with custom secret-file
@echo "🎬 Running act with custom secrets file..."
act --env-file .github/.env --secret-file .github/.secrets.env --var-file .github/.var.env --network host {{ ARGS }}
# Start all services for development
dev:
@echo "🚀 Starting all development services..."
@@ -45,11 +50,11 @@ dev:
# Start Rust backend with hot reload
dev-master *ARGS:
@echo "🔧 Starting Rust backend..."
cargo watch -w apps/nxmesh-master -x 'run --bin nxmesh-master -- {{ARGS}}'
cargo watch -w apps/nxmesh-master -x 'run --bin nxmesh-master -- {{ ARGS }}'
dev-agent *ARGS:
@echo "🔧 Starting Rust agent..."
cargo watch -w apps/nxmesh-agent -x 'run --bin nxmesh-agent -- {{ARGS}}'
cargo watch -w apps/nxmesh-agent -x 'run --bin nxmesh-agent -- {{ ARGS }}'
# Start Vite frontend development server
dev-frontend:
@@ -89,7 +94,7 @@ build-frontend:
# =============================================================================
db *ARGS:
cd crates && sea-orm-cli {{ARGS}}
cd crates && sea-orm-cli {{ ARGS }}
# Setup database
db-setup:
@@ -205,6 +210,11 @@ docker-run:
@echo "🐳 Running Docker container..."
docker run -p 8080:8080 --env-file .env nxmesh:latest
# Build Docker image for CI
docker-build-ci REGISTRY="ghcr.io/nxmesh":
@echo "🐳 Building Docker image for CI..."
docker build -t {{ REGISTRY }}/ci:latest -f ./.github/docker/ci.Dockerfile .
# =============================================================================
# Nginx Commands (Shared PID Namespace + Docker Fallback)
# =============================================================================