milestone 2 complete
Some checks failed
CI / Test (pull_request) Failing after 6s
CI / Build (pull_request) Failing after 7s
CI / Lint (pull_request) Failing after 13s

This commit is contained in:
2025-10-10 19:03:31 -04:00
parent 4a517d104a
commit a0f80c5c7d
19 changed files with 2225 additions and 145 deletions

View File

@ -1,5 +1,5 @@
# Makefile for Onyx
.PHONY: build test clean install lint security ci
.PHONY: build test clean install lint security ci integration
# Default target
all: clean lint test build
@ -12,10 +12,15 @@ build:
@echo "Build complete: bin/onx, bin/onxd"
test:
@echo "Running tests..."
@echo "Running unit tests..."
go test -v -race -coverprofile=coverage.out ./...
@echo "Test coverage generated: coverage.out"
integration: build
@echo "Running integration tests..."
@mkdir -p test
@./test/integration_test.sh
coverage: test
@echo "Coverage report:"
go tool cover -html=coverage.out -o coverage.html
@ -87,17 +92,18 @@ build-all:
help:
@echo "Available targets:"
@echo " all - Clean, lint, test, and build"
@echo " build - Build CLI and daemon for current platform"
@echo " build-all - Cross-platform builds"
@echo " test - Run tests with coverage"
@echo " coverage - Generate HTML coverage report"
@echo " lint - Run code linting"
@echo " security - Run security scanning"
@echo " ci - Run full CI pipeline"
@echo " install - Install to PATH"
@echo " clean - Clean build artifacts"
@echo " fmt - Format code"
@echo " mod-tidy - Tidy Go modules"
@echo " dev-setup - Install development tools"
@echo " help - Show this help message"
@echo " all - Clean, lint, test, and build"
@echo " build - Build CLI and daemon for current platform"
@echo " build-all - Cross-platform builds"
@echo " test - Run unit tests with coverage"
@echo " integration - Run end-to-end integration tests"
@echo " coverage - Generate HTML coverage report"
@echo " lint - Run code linting"
@echo " security - Run security scanning"
@echo " ci - Run full CI pipeline"
@echo " install - Install to PATH"
@echo " clean - Clean build artifacts"
@echo " fmt - Format code"
@echo " mod-tidy - Tidy Go modules"
@echo " dev-setup - Install development tools"
@echo " help - Show this help message"