-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
59 lines (49 loc) · 1.3 KB
/
Taskfile.yml
File metadata and controls
59 lines (49 loc) · 1.3 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# https://taskfile.dev
version: '3'
vars:
BINFILE: eph
# includes:
# dev: ./Taskfile_dev.yml
tasks:
default:
desc: "List tasks"
cmds:
- task -a
lint:
desc: "Run the linters"
cmds:
- golangci-lint run # golangci-lint run --enable-only paralleltest
vuln:
desc: "Run the vulnerability scanner"
cmds:
- govulncheck ./...
build:
desc: "Build the binary"
cmds:
- CGO_ENABLED=0 go build -ldflags '-w -s' -o {{.BINFILE}} .
snapshot:
desc: "Create a snapshot release"
cmds:
- GITLAB_TOKEN="" goreleaser --clean --snapshot
release:
desc: "Create a release"
cmds:
- GITLAB_TOKEN="" goreleaser --clean --skip validate
godoc:
desc: "Run godoc server"
cmds:
- godoc -http=:6060
tests:
desc: "Run the tests"
dir: tests
preconditions:
- test -f env.yml
cmds:
- venom run integration.yml --var-from-file env.yml --output-dir="log" --stop-on-failure
coverage:
desc: "Run the tests with coverage"
cmds:
# - go generate ./...
- go test -coverpkg=github.com/ephemeralfiles/eph/pkg/config,github.com/ephemeralfiles/eph/pkg/ephcli,github.com/ephemeralfiles/eph/pkg/github -coverprofile=profile.cov ./...
- go tool cover -func profile.cov
- rm profile.cov