-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
52 lines (41 loc) · 855 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: '3'
vars:
GIT_COMMIT:
sh: git log -n 1 --format=%h
GOOS: linux
env:
CGO_ENABLED: '0'
tasks:
default:
cmds:
- task: test
mod:
desc: Init and tidy Go modules
cmds:
- go mod init
- go mod tidy
lint:
desc: Runs golint
cmds:
- golangci-lint run
silent: true
test:
desc: Runs test suite
cmds:
- go test {{catLines .GO_PACKAGES}}
test-release:
desc: Tests release process without publishing
cmds:
- goreleaser --snapshot --rm-dist
release:
desc: Release with goreleaser
cmds:
- goreleaser release --rm-dist
build:
desc: Build nodestat
cmds:
- go build -v -ldflags="-w -s -X main.commit={{.GIT_COMMIT}}" -o bin/nodestat ./cmd/main.go
clean:
desc: Cleans temp files and folders
cmds:
- rm -rf dist/*