-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
88 lines (72 loc) · 1.78 KB
/
Copy pathTaskfile.yaml
File metadata and controls
88 lines (72 loc) · 1.78 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# https://taskfile.dev
version: "3"
silent: true
tasks:
default:
cmds:
- ./lazys3 --debug
interactive: true
desc: Run
deps:
- build
build:
cmds:
- go build -ldflags "-X github.com/LinPr/lazys3/cmd.Version=$(git describe --tags --always --dirty)" .
desc: Build binary
lint:
desc: Run base linters
cmds:
- golangci-lint run --path-mode=abs --config=".golangci.yml" --timeout=5m
env:
GOEXPERIMENT: null
lint-fix:
desc: Run base linters and fix issues
cmds:
- golangci-lint run --path-mode=abs --config=".golangci.yml" --timeout=5m --fix
env:
GOEXPERIMENT: null
test:
desc: Run unit tests (alias for test-unit)
deps:
- test-unit
test-unit:
cmds:
- go test -v $(go list ./... | grep -v /e2e)
desc: Run unit tests (excludes e2e package)
test-e2e:
cmds:
- go test -v -tags=e2e ./e2e/...
desc: Run e2e tests against in-process gofakes3
test-e2e-real:
desc: Run e2e tests against a real S3-compatible service via a shared config profile
cmds:
- LAZYS3_E2E_REAL=oss go test -v -tags=e2e ./e2e/...
fmt:
desc: Run go fmt
cmds:
- go fmt ./...
check-nerd-font:
cmds:
- nerdfix check $(fd --extension go)
desc: Find broken nerdfont characters
fix-nerd-font:
cmds:
- nerdfix fix --format=json $(fd --extension go)
desc: Fix broken nerdfont icons
docs-prepare:
cmds:
- cd docs && pnpm i
docs-dev:
cmds:
- cd docs && pnpm dev
desc: Start docs server
docs-build:
cmds:
- task: docs-prepare
- cd docs && pnpm build
desc: Run docs production build
docs-preview:
cmds:
- task: docs-build
- cd docs && pnpm preview
desc: Preview docs production build