Files
tapir/Taskfile.yml
T
mathiasandClaude Opus 4.8 a234be7817
CI / Lint / Test / Vet (push) Failing after 5s
CI / Build & Import (push) Has been skipped
CI / Mirror to GitHub (push) Has been skipped
fix(taskfile): quote fmt-check cmd so YAML doesn't parse inner colon as a map
go-task 3.51.1 read the unquoted scalar 'echo "gofmt: files..."' as a
key:value mapping, failing every task with 'invalid keys in command' and
blocking the whole quality gate (not just the acceptance suite). Wrap the
command in an explicit double-quoted YAML scalar.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-02 15:31:15 +02:00

53 lines
1.3 KiB
YAML

version: "3"
# Quality gate for Tapir. `task check` is THE gate referenced by ADR-009 and the
# CI workflow. Run it before every push (TBD: commit directly to main).
tasks:
default:
cmds:
- task: check
check:
desc: Full quality gate — fmt check, vet, lint, test.
cmds:
- task: fmt-check
- task: vet
- task: lint
- task: test
fmt:
desc: Format all Go code.
cmds:
- gofmt -w .
fmt-check:
desc: Fail if any file is not gofmt-clean.
cmds:
- "test -z \"$(gofmt -l .)\" || { echo 'gofmt: files need formatting:'; gofmt -l .; exit 1; }"
vet:
desc: go vet.
cmds:
- go vet ./...
lint:
desc: golangci-lint (installed by CI; skipped locally if absent).
cmds:
- 'command -v golangci-lint >/dev/null 2>&1 && golangci-lint run ./... || echo "golangci-lint not installed — skipping (CI installs it)"'
test:
desc: Run all tests, including the acceptance suite (RED until the engine is implemented).
cmds:
- go test ./...
build:
desc: Compile the binary.
cmds:
- go build -o bin/tapir ./cmd/tapir
skills:
desc: Wire the engineering skills library into this repo (symlinks, gitignored).
cmds:
- curl -fsSL https://gitea.d-ma.be/mathias/skills/raw/branch/main/install.sh | bash