rdev/internal/adapter/templates/templates/components/cli/.woodpecker.step.yml.tmpl
jordan 9f957d6e75
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
fix(templates): harden component CI steps and compile regexes
- Add --connect-timeout 10 and --max-time 15 to all verify step curl
  calls to prevent hanging on registry health checks
- Fix cli template: depends_on [deps] -> [preflight] for consistency
- Add cross-reference comment to service template about verify logic
  being replicated across all 5 component templates
- Document component CI step rules in composable-monorepo.md
- Compile regexes at package level instead of per-call in
  component_updates.go
- Add component_updates_test.go

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 19:36:23 -07:00

18 lines
451 B
Cheetah

# Woodpecker CI step for {{COMPONENT_NAME}} CLI
# Add this step to your .woodpecker.yml
# CLI binaries typically don't need Docker images for deployment.
# This step builds and tests the CLI.
build-{{COMPONENT_NAME}}:
depends_on: [preflight]
image: golang:1.25-alpine
commands:
- cd cli/{{COMPONENT_NAME}}
- go mod download
- go build -o bin/{{COMPONENT_NAME}} ./cmd
- go test -v ./...
when:
branch: main
event: push