Add taskfile
This commit is contained in:
parent
19e68df732
commit
2d06e8e09c
2 changed files with 27 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
build
|
||||||
26
Taskfile.yml
Normal file
26
Taskfile.yml
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
version: '3'
|
||||||
|
|
||||||
|
env:
|
||||||
|
go_dir:
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
pull:
|
||||||
|
cmds:
|
||||||
|
- go mod download
|
||||||
|
silent: true
|
||||||
|
test:
|
||||||
|
cmds:
|
||||||
|
- go test ./app
|
||||||
|
- go test ./commands
|
||||||
|
- go test ./config
|
||||||
|
- go test ./echo
|
||||||
|
build:
|
||||||
|
cmds:
|
||||||
|
- mkdir -p build
|
||||||
|
- go build -o build/grm
|
||||||
|
|
||||||
|
install:
|
||||||
|
deps:
|
||||||
|
- build
|
||||||
|
cmds:
|
||||||
|
- go install .
|
||||||
Loading…
Add table
Add a link
Reference in a new issue