-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
36 lines (31 loc) · 967 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
version: "3"
includes:
ak:
taskfile: ./alfred/Taskfile.yml
dir: alfred
gh-merge:
taskfile: ./gh-merge/Taskfile.yml
dir: gh-merge
rss2newsletter:
taskfile: ./rss2newsletter/Taskfile.yml
dir: rss2newsletter
tasks:
pre-commit:
desc: pre-commit
cmds:
- pre-commit run --all-files
lint:
desc: golang linter
cmds:
- golangci-lint run --fix
- gofumpt -l -w .
- go mod tidy -v
- betteralign -apply ./...
# - go test `go list ./... | grep -v examples` -coverprofile=coverage.out -covermode=atomic
- task: pre-commit
- nilaway ./...
# - # go build -race cmd
# - # hadolint --config </path/to/config.yaml> Dockerfile
# - go vet -vettool=$(which shadow) -strict # 这个回去扫描官方pkg的版本,报错类似 shadow: package requires newer Go version go1.23,所以移除
test:
cmd: set -o pipefail && go test ./... -json | tparse -all