-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
51 lines (43 loc) · 850 Bytes
/
Copy pathTaskfile.yml
File metadata and controls
51 lines (43 loc) · 850 Bytes
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
version: '3'
tasks:
build:
desc: Build the kroger binary
deps: [fmt, vet]
cmds:
- mkdir -p bin
- go build -o bin/kroger .
sources:
- ./**/*.go
- go.mod
- go.sum
generates:
- bin/kroger
vet:
desc: Run go vet
cmds:
- go vet ./...
fmt:
desc: Format Go source files
cmds:
- gofmt -w .
fmt:check:
desc: Check formatting without modifying files
cmds:
- test -z "$(gofmt -l .)" || (gofmt -l . && exit 1)
test:
desc: Run all tests
deps: [build]
cmds:
- go test ./...
lint:
desc: Run all checks (vet, fmt, test)
deps: [fmt:check, vet, test]
install:
desc: Install kroger to $GOPATH/bin
deps: [fmt, vet]
cmds:
- go install .
clean:
desc: Remove build artifacts
cmds:
- rm -rf bin