-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathTaskfile.yaml
34 lines (29 loc) · 859 Bytes
/
Taskfile.yaml
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
version: '3'
tasks:
build:
desc: Build the project
cmds:
- go build -o ain cmd/ain/main.go
test:
desc: Run tests
cmds:
- go test ./...
test:e2e:files:
desc: Run e2e tests for these files
cmds:
- go test test/e2e/e2e_test.go -- {{.CLI_ARGS}}
test:cover:
desc: Run tests with coverage
env:
E2EGOCOVERDIR: "{{.PWD}}/cov/e2e"
cmds:
- rm -r {{.PWD}}/cov/
- mkdir -p {{.PWD}}/cov/unit {{.PWD}}/cov/e2e
- go test -cover ./... -args -test.gocoverdir="{{.PWD}}/cov/unit"
- go tool covdata textfmt -i=./cov/unit,./cov/e2e -o cov/profile.out
- go tool cover -html=cov/profile.out -o cov/coverage.html
- xdg-open cov/coverage.html
update:docs:
desc: Update README.md toc
cmds:
- npx doctoc --github --notitle --maxlevel=2 --update-only README.md