|
1 | | -.PHONY: build lint test coverage test-ci format clean install release help |
| 1 | +.PHONY: build lint test coverage test-ci format clean install release help agent-finished |
2 | 2 |
|
3 | 3 | # Default target |
4 | 4 | .DEFAULT_GOAL := help |
|
29 | 29 | @echo "Running tests..." |
30 | 30 | @go test -v ./... |
31 | 31 |
|
| 32 | +# Run format, build, lint, and test (for agents before completion) |
| 33 | +agent-finished: |
| 34 | + @echo "Running agent-finished checks..." |
| 35 | + @echo "" |
| 36 | + @$(MAKE) format |
| 37 | + @echo "" |
| 38 | + @$(MAKE) build |
| 39 | + @echo "" |
| 40 | + @$(MAKE) lint |
| 41 | + @echo "" |
| 42 | + @$(MAKE) test |
| 43 | + @echo "" |
| 44 | + @echo "✓ All agent-finished checks passed!" |
| 45 | + |
32 | 46 | # Run tests with coverage |
33 | 47 | coverage: |
34 | 48 | @echo "Running tests with coverage..." |
@@ -168,13 +182,14 @@ install: |
168 | 182 | # Display help information |
169 | 183 | help: |
170 | 184 | @echo "Available targets:" |
171 | | - @echo " build - Build the CLI binary" |
172 | | - @echo " lint - Run all linters (go vet, gofmt check)" |
173 | | - @echo " test - Run all tests" |
174 | | - @echo " coverage - Run tests with coverage report" |
175 | | - @echo " test-ci - Run tests with coverage and JSON output for CI" |
176 | | - @echo " format - Format Go code using gofmt" |
177 | | - @echo " clean - Clean build artifacts" |
178 | | - @echo " install - Install required toolchains and dependencies" |
179 | | - @echo " release - Create and push a release tag (usage: make release patch|minor|major)" |
180 | | - @echo " help - Display this help message" |
| 185 | + @echo " build - Build the CLI binary" |
| 186 | + @echo " lint - Run all linters (go vet, gofmt check)" |
| 187 | + @echo " test - Run all tests" |
| 188 | + @echo " coverage - Run tests with coverage report" |
| 189 | + @echo " test-ci - Run tests with coverage and JSON output for CI" |
| 190 | + @echo " format - Format Go code using gofmt" |
| 191 | + @echo " clean - Clean build artifacts" |
| 192 | + @echo " install - Install required toolchains and dependencies" |
| 193 | + @echo " release - Create and push a release tag (usage: make release patch|minor|major)" |
| 194 | + @echo " agent-finished - Run format, build, lint, and test (for agents before completion)" |
| 195 | + @echo " help - Display this help message" |
0 commit comments