22 lines
364 B
YAML
22 lines
364 B
YAML
# https://taskfile.dev
|
|
|
|
version: '3'
|
|
|
|
vars:
|
|
VERSION: 0.0.0
|
|
|
|
tasks:
|
|
docs:
|
|
cmds:
|
|
- swag i --parseDependency --dir api
|
|
silent: false
|
|
test:
|
|
cmds:
|
|
- go mod tidy
|
|
- go test -v ./...
|
|
silent: false
|
|
build:
|
|
cmds:
|
|
- go mod tidy
|
|
- mkdir -p bin
|
|
- env CGO_ENABLED=0 go build -o bin/lobby2-{{ .VERSION }}-linux-amd64 cli/*.go
|