-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.dist.yaml
More file actions
96 lines (80 loc) · 2.37 KB
/
Copy pathTaskfile.dist.yaml
File metadata and controls
96 lines (80 loc) · 2.37 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
89
90
91
92
93
94
95
96
---
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: "3"
includes:
setup: .taskfiles/setup.yaml
backlog: .taskfiles/backlog.yaml
cli: .taskfiles/cli.yaml
windows: .taskfiles/windows.yaml
tasks:
default:
silent: true
cmd: task -l
init:
desc: Install toolchain, dependencies, and hooks
aliases: [setup]
deps:
- task: setup:init
cmds:
- task: cli:init
changelog:
desc: Regenerate CHANGELOG.md from conventional commits
cmd: mise exec git-cliff -- git-cliff --output CHANGELOG.md
changelog:check:
desc: Verify changelog generation
cmd: mise exec git-cliff -- git-cliff > /dev/null
ci:
desc: The gate. Everything that must pass before a backlog task is Done.
cmds:
- task: security
- task: check
- task: test
- task: race
- task: smoke
security:
desc: Scan repository history for secrets and Go code for reachable vulnerabilities
cmds:
- mise exec gitleaks -- gitleaks git --redact --verbose --no-banner
- mise exec go:golang.org/x/vuln/cmd/govulncheck -- govulncheck ./...
check:
desc: Run all project checks
deps:
- task: cli:check
- task: changelog:check
check:staged:
desc: Format and run checks only for staged files
aliases: [check-staged]
cmd: mise exec lefthook -- lefthook run pre-commit
fix:staged:
desc: Format and re-stage staged files
aliases: [fix-staged]
cmd: mise exec lefthook -- lefthook run pre-commit --tag fix
fix:
desc: Fix all project files
deps:
- task: cli:fix
test:
desc: Run all tests
deps:
- task: cli:test
cmds:
- sh scripts/install_test.sh
coverage:
desc: Run all tests and print function coverage
cmds:
- mise exec go -- go test ./... -coverprofile=/tmp/hum-coverage.out
- mise exec go -- go tool cover -func=/tmp/hum-coverage.out
race:
desc: Run race-sensitive package tests
cmd: mise exec go -- go test -race ./...
stress:
desc: Stress daemon and child-process tests
cmd: mise exec go -- go test -race -count=5 -shuffle=on -failfast ./integration ./internal/cli ./internal/daemon ./internal/app ./internal/mcp
smoke:
desc: Build release outputs and run the built binary
deps:
- task: cli:build
- task: cli:man
cmds:
- test -s dist/hum.1
- bin/hum --version