-
Notifications
You must be signed in to change notification settings - Fork 1
/
Taskfile.yml
37 lines (33 loc) · 956 Bytes
/
Taskfile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# yaml-language-server: $schema=https://taskfile.dev/schema.json
# docs: https://taskfile.dev
#
# Windows:
# winget install Task.Task
#
# Linux:
# sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b ~/.local/bin
# echo 'command -v task >/dev/null || export PATH="$PATH:$HOME/.local/bin"' >> ~/.profile
# source ~/.profile
#
# macOS:
# brew install go-task/tap/go-task
---
version: "3"
vars:
PROJECT_NAME: godog
MODULE_NAME:
sh: go mod edit -json | jq .Module.Path -r
tasks:
# ----------------------
# Development
# ----------------------
test:unit:
desc: Run unit tests
cmds:
- go test ./animals -timeout 30s -coverprofile=coverage.out github.com/hattan/godog/animals
test:cover:
desc: Run unit tests and show code coverage
cmds:
- |
go test ./animals -timeout 30s -coverprofile=coverage.out github.com/hattan/godog/animals
go tool cover -html coverage.out -o coverage.html