-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtaskfile.yml
More file actions
54 lines (43 loc) · 1.25 KB
/
taskfile.yml
File metadata and controls
54 lines (43 loc) · 1.25 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
# https://taskfile.dev
version: "3"
vars:
GREETING: Hello, these are Refdir tasks!
tasks:
default:
cmds:
- echo "{{.GREETING}}"
silent: true
installtools:
cmds:
# Install task, go, golangci-lint, cloc externally. E.g via asdf. the needed versions are pinned in .tool-versions file.
- go install golang.org/x/tools/gopls@v0.20.0
- go install github.com/oligot/go-mod-upgrade@v0.12.0
- go install github.com/kisielk/godepgraph@v1.0.0
- go install github.com/ppipada/refdir@v0.7.0
cloc:
cmds:
- |
cloc --vcs=git --ignored=ignored.txt \
--force-lang=Mustache,tmpl --force-lang=INI,env --force-lang=INI,dev --force-lang=INI,prod \
--exclude_ext=yaml,sum,mod,md5 --not-match-f='LICENSE$|\.gitignore$' \
.
godepgraph:
cmds:
- godepgraph -s -o github.com/ppipada/refdir,command-line-arguments main.go | dot -Tpng -o godepgraph.png
lint-godotfix:
cmds:
- golangci-lint run --fix --enable-only=godot
lint-gosort:
cmds:
# Use a installed version of this repo.
- refdir ./...
lint:
cmds:
- golangci-lint run ./... -v
test:
cmds:
- go test ./... -v
lt:
cmds:
- task: lint
- task: test