-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
49 lines (48 loc) · 1.12 KB
/
Copy pathTaskfile.yml
File metadata and controls
49 lines (48 loc) · 1.12 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
version: "3"
tasks:
default:
desc: Show available tasks
cmds: [task --list]
test:
desc: Run all tests
cmds: [go test ./...]
test:race:
desc: Run all tests with the race detector
cmds: [go test -race ./...]
test:coverage:
desc: Run tests with coverage report
cmds:
- go test -race -coverprofile=cover.out ./...
- go tool cover -html=cover.out -o cover.html
vet:
desc: Run go vet
cmds: [go vet ./...]
lint:
desc: Run golangci-lint
cmds: [golangci-lint run ./...]
tidy:
desc: Run go mod tidy
cmds: [go mod tidy]
build:
desc: Compile-check
cmds: [go build ./...]
ci:
desc: Full local CI suite (vet + race tests)
cmds:
- task: vet
- task: test:race
gen:vectors:
desc: Regenerate testdata/vectors.json from cmd/gen-vectors
cmds:
- go run ./cmd/gen-vectors > testdata/vectors.json
examples:
desc: Run every example in examples/
cmds:
- |
for d in examples/*/; do
echo "=== $d ==="
(cd "$d" && go run .)
echo
done
clean:
cmds: [rm -f cover.out cover.html]