-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Problem: Examples might break but we won't know until someone runs them.
Required Changes:
- Add
examples/example_test.go:
func TestExamplesCompile(t *testing.T) {
// Test that all examples compile
examples := []string{
"01_helloworld",
"02_rainbow",
// ...
}
for _, ex := range examples {
cmd := exec.Command("go", "build", "./"+ex)
if err := cmd.Run(); err != nil {
t.Errorf("Example %s failed to compile: %v", ex, err)
}
}
}- Add to CI pipeline
- Consider making examples buildable without LLM credentials
Estimated Effort: 1 hour
Skills Required: Testing, CI/CD