# 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
