🛠 Add Taskfile
This commit is contained in:
parent
6498f3d56b
commit
33f140595c
1 changed files with 25 additions and 0 deletions
25
Taskfile.yml
Normal file
25
Taskfile.yml
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
version: '3'
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
default:
|
||||||
|
cmds:
|
||||||
|
- task: fmt
|
||||||
|
- task: test
|
||||||
|
- task: build
|
||||||
|
|
||||||
|
fmt:
|
||||||
|
desc: Format go code
|
||||||
|
cmds:
|
||||||
|
- go fmt ./...
|
||||||
|
|
||||||
|
test:
|
||||||
|
desc: Run unit tests
|
||||||
|
cmds:
|
||||||
|
- go test -race -cover ./...
|
||||||
|
|
||||||
|
build:
|
||||||
|
desc: Build server binary
|
||||||
|
generates:
|
||||||
|
- build/lenore
|
||||||
|
cmds:
|
||||||
|
- go build -o build/lenore cmd/lenore/main.go
|
||||||
Loading…
Add table
Add a link
Reference in a new issue