add: some tests

This commit is contained in:
2026-03-24 23:16:22 -07:00
parent e7e23c1e8c
commit 98b14220e7
6 changed files with 159 additions and 3 deletions
+16 -3
View File
@@ -1,7 +1,18 @@
.PHONY: proto proto-deps help
.PHONY: all build test proto proto-deps help
# Default target
all: help
all: build
# Build Go project
build:
@echo "Building Go project..."
go build -o bin/webstory ./cmd/webstory || exit 1
@echo "Build complete!"
# Run tests
test:
@echo "Running tests..."
go test -v ./...
# Generate Go code from proto files using buf
proto: proto-deps
@@ -18,6 +29,8 @@ help:
@echo "Webstory Makefile"
@echo ""
@echo "Available targets:"
@echo " make all - Show this help message"
@echo " make all - Show this help message (default)"
@echo " make build - Build Go project"
@echo " make test - Run tests"
@echo " make proto - Generate Go code from proto files"
@echo " make proto-deps - Ensure buf is installed"