add Taskfile.yml
This commit is contained in:
parent
bc414634b8
commit
5a7dfddc38
1 changed files with 23 additions and 0 deletions
23
Taskfile.yml
Normal file
23
Taskfile.yml
Normal 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 ./...
|
||||||
Loading…
Add table
Add a link
Reference in a new issue