-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
43 lines (35 loc) · 886 Bytes
/
Copy pathTaskfile.yml
File metadata and controls
43 lines (35 loc) · 886 Bytes
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
version: "3"
vars:
MODULE: github.com/dantte-lp/ypcli
LDFLAGS: >-
-s -w
-X main.version={{.VERSION | default "dev"}}
-X main.commit={{.COMMIT | default "none"}}
-X main.date={{.DATE | default "unknown"}}
env:
CGO_ENABLED: "0"
tasks:
build:
desc: Build the ypcli binary
cmds:
- go build -trimpath -ldflags "{{.LDFLAGS}}" -o ypcli ./cmd/ypcli
test:
desc: Run tests with race detector and coverage
cmds:
- go test -race -cover ./...
lint:
desc: Run golangci-lint
cmds:
- golangci-lint run
vuln:
desc: Run govulncheck
cmds:
- go run golang.org/x/vuln/cmd/govulncheck@latest ./...
tidy:
desc: Tidy go.mod
cmds:
- go mod tidy
release-snapshot:
desc: Build a local snapshot release
cmds:
- go run github.com/goreleaser/goreleaser/v2@latest release --snapshot --clean