mol-sync-workspace: Add build/test command variables (gt-muwit)
Add configurable build_command and test_command variables to the
mol-sync-workspace formula. Previously hardcoded to Go commands,
now supports any project type via variable configuration.
- Add build_command variable (default: go build ./...)
- Add test_command variable (default: go test ./...)
- Update verify-build step to use {{ build_command }}
- Update run-tests step to use {{ test_command }}
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
committed by
Steve Yegge
parent
c28a0d5c51
commit
ae4b65ff5c
@@ -30,6 +30,8 @@ Polecats can file a bead and delegate. Refinery must resolve inline.
|
||||
| Variable | Source | Description |
|
||||
|----------|--------|-------------|
|
||||
| role | auto-detected | Agent role (crew/polecat/refinery/witness) |
|
||||
| build_command | config or default | Build command (default: `go build ./...`) |
|
||||
| test_command | config or default | Test command (default: `go test ./...`) |
|
||||
|
||||
## Failure Modes
|
||||
|
||||
@@ -246,8 +248,9 @@ description = """
|
||||
Ensure the codebase compiles.
|
||||
|
||||
```bash
|
||||
go build ./...
|
||||
# Or appropriate build command for the project
|
||||
{{ build_command }}
|
||||
# Default: go build ./...
|
||||
# Configure via build_command variable for non-Go projects
|
||||
```
|
||||
|
||||
**If build succeeds:** Continue to next step.
|
||||
@@ -281,7 +284,9 @@ description = """
|
||||
Verify tests pass on current baseline.
|
||||
|
||||
```bash
|
||||
go test ./...
|
||||
{{ test_command }}
|
||||
# Default: go test ./...
|
||||
# Configure via test_command variable for non-Go projects
|
||||
```
|
||||
|
||||
**If tests pass:** Continue to next step.
|
||||
|
||||
Reference in New Issue
Block a user