add Taskfile.yml

This commit is contained in:
juancwu 2026-04-29 00:44:40 +00:00
commit 5a7dfddc38

23
Taskfile.yml Normal file
View file

@ -0,0 +1,23 @@
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: '3'
tasks:
default:
desc: List all available commands
cmds:
- task -l
test:
desc: Run tests
cmds:
- set -o pipefail && go test ./... -json | tparse -all
test:race:
desc: Run tests with race detector
cmds:
- set -o pipefail && go test ./... -json -race | tparse -all
fmt:
desc: Format code
cmds:
- go fmt ./...
vet:
desc: Check source code
cmds:
- go vet ./...