-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 807 Bytes
/
Makefile
File metadata and controls
34 lines (26 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.PHONY: check fmt lint test build scan e2e clean
check: fmt lint test build
@echo "✅ All CI/CD checks passed! Ready to commit."
fmt:
@echo "🧹 Formatting code..."
go fmt ./...
lint:
@echo "🔍 Running linter..."
go vet ./...
# If you have golangci-lint installed, uncomment the line below
# golangci-lint run
test:
@echo "🧪 Running unit tests..."
go test -race ./...
build:
@echo "🔨 Verifying build..."
go build -o tooltrust-scanner ./cmd/tooltrust-scanner
go build -o tooltrust-mcp ./cmd/tooltrust-mcp
e2e: scan-test
scan-test: build
@echo "🔎 Running E2E Scanner Test..."
# Run E2E scan with the newly built binary
./tooltrust-scanner scan --server "npx -y @modelcontextprotocol/server-memory"
clean:
@echo "🧹 Cleaning up..."
rm -f tooltrust-scanner tooltrust-mcp