-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.dist.yaml
More file actions
59 lines (59 loc) · 1.47 KB
/
Taskfile.dist.yaml
File metadata and controls
59 lines (59 loc) · 1.47 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
# Taskfile.dist.yaml
#
# Task is a task runner / build tool that aims to be simpler and easier to use than, for example, GNU Make.
# https://taskfile.dev/installation/
#
# To see all available tasks:
# $ task --list
#
version: "3"
tasks:
default:
desc: "Task runner for the helper package."
cmds:
- task --list-all
silent: true
doc:
desc: "Generate and browse the application module documentation."
cmds:
- cmd: pkgsite -http localhost:8090
silent: true
lint:
silent: false
desc: Runs the go formatter and lints the source code.
ignore_error: true
cmds:
- cmd: clear
platforms: [linux, darwin, freebsd]
- cmd: gofumpt -l -w .
- cmd: golangci-lint run -c .golangci.yaml
nil:
desc: "Run the static analysis techniques to catch Nil dereferences."
cmds:
- go tool nilaway -test=false ./...
pkg-patch:
aliases:
- "patch"
silent: false
desc: Update and apply patches to the web server dependencies.
cmds:
- cmd: go get -u=patch -x
- cmd: go mod verify
- cmd: go mod tidy
pkg-update:
aliases:
- "update"
silent: false
desc: Update the web server dependencies.
cmds:
- cmd: go get -u -x
- cmd: go mod verify
- cmd: go mod tidy
test:
desc: "Run the test suite."
cmds:
- go test -count 1 ./...
testr:
desc: "Run the test suite with the slower race detection."
cmds:
- go test -count 1 -race ./...