-
Notifications
You must be signed in to change notification settings - Fork 6
/
Taskfile.yaml
57 lines (45 loc) · 1 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
version: "3"
silent: true
vars:
BIN_NAME: "cloudflare-dynamic-dns"
tasks:
default: ${GOTASK_BIN:-task} --list
go:fmt:
desc: Format the code
cmds:
- goimports-reviser -rm-unused -set-alias -format ./...
- gofumpt -w .
go:lint:golangci:
cmds:
- golangci-lint run
go:lint:vet:
cmds:
- go vet ./...
go:lint:sec:
cmds:
- gosec ./...
go:lint:
desc: Lint the code
deps:
- go:lint:golangci
- go:lint:vet
- go:lint:sec
go:build:
desc: Build the binary
cmds:
- goreleaser build --snapshot --clean --single-target --output bin/{{.BIN_NAME}}
go:run:
desc: Run the binary
deps:
- go:build
cmds:
- bin/{{.BIN_NAME}} {{.CLI_ARGS}}
misc:build:goreleaser-config:
desc: Renders .gorleaser.yml from .goreleaser.ytt.yml
cmds:
- ytt -f .goreleaser.ytt.yml > .goreleaser.yml
docs:update-readme:
desc: Update the README.md file
cmds:
- scripts/update_readme README.md