Add taskfile
This commit is contained in:
parent
19e68df732
commit
2d06e8e09c
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…
Reference in New Issue
Block a user