19 lines
471 B
YAML
19 lines
471 B
YAML
|
|
version: "3"
|
||
|
|
|
||
|
|
tasks:
|
||
|
|
test:
|
||
|
|
cmds:
|
||
|
|
- |
|
||
|
|
bash <<'EOF'
|
||
|
|
set -euo pipefail
|
||
|
|
source ../../_lib/run.sh
|
||
|
|
|
||
|
|
go build -trimpath -ldflags="-s -w" -o bin/core-agent ../../../../cmd/core-agent
|
||
|
|
|
||
|
|
output="$(mktemp)"
|
||
|
|
run_capture_all 1 "$output" ./bin/core-agent dispatch/sync
|
||
|
|
assert_contains "usage:" "$output"
|
||
|
|
assert_contains "repo" "$output"
|
||
|
|
assert_contains "task" "$output"
|
||
|
|
EOF
|