Adds tests/cli/webview/Taskfile.yaml with canonical build/test/vet/default targets plus test-unit and CHROME_ADDR-gated test-integration (skipped cleanly when no Chrome endpoint set). default deps-chains build/test/vet per Wave 2 convention. Co-authored-by: Codex <noreply@openai.com> Via-codex-lane: supervised by Cerberus on Athena #106 request Closes tasks.lthn.sh/view.php?id=290
42 lines
719 B
YAML
42 lines
719 B
YAML
version: "3"
|
|
|
|
env:
|
|
GOWORK: off
|
|
GOCACHE: /tmp/go-webview-go-build-cache
|
|
|
|
tasks:
|
|
build:
|
|
dir: ../../..
|
|
cmds:
|
|
- go build ./...
|
|
|
|
test:
|
|
dir: ../../..
|
|
cmds:
|
|
- go test -count=1 -race ./...
|
|
|
|
vet:
|
|
dir: ../../..
|
|
cmds:
|
|
- go vet ./...
|
|
|
|
test-unit:
|
|
dir: ../../..
|
|
cmds:
|
|
- go test -count=1 -race ./... -run Unit
|
|
|
|
test-integration:
|
|
dir: ../../..
|
|
cmds:
|
|
- |
|
|
if [ -z "${CHROME_ADDR:-}" ]; then
|
|
echo "Skipping integration tests: CHROME_ADDR unset (requires Chrome on localhost:9222)"
|
|
exit 0
|
|
fi
|
|
go test -count=1 ./... -run Integration -tags integration
|
|
|
|
default:
|
|
deps:
|
|
- build
|
|
- test
|
|
- vet
|