diff --git a/Taskfile.yml b/Taskfile.yml new file mode 100644 index 0000000..7349f58 --- /dev/null +++ b/Taskfile.yml @@ -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 ./...