-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTaskfile.yml
More file actions
54 lines (45 loc) · 1.22 KB
/
Taskfile.yml
File metadata and controls
54 lines (45 loc) · 1.22 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
version: '3'
includes:
gui: ./cmd/core-gui/Taskfile.yml
cli: ./cmd/core/Taskfile.yml
tasks:
test:
desc: "Run all Go tests recursively for the entire project."
cmds:
- cmd: clear
platforms: [linux, darwin]
- cmd: cls
platforms: [windows]
- cmd: go test ./...
review:
desc: "Run CodeRabbit review to get feedback on the current changes."
cmds:
- coderabbit review --prompt-only
check:
desc: "Run a CodeRabbit review followed by the full test suite."
cmds:
- task: go:mod:tidy
- go test ./... # make sure the code compiles before asking coderabbit to review it
- task: review
go:mod:tidy:
summary: Runs `go mod tidy`
internal: true
cmds:
- go mod tidy
cov:
desc: "Generate coverage profile (coverage.txt)"
cmds:
- go test -coverprofile=coverage.txt ./...
cov-view:
desc: "Open the coverage report in your browser."
cmds:
- task: cov
- go tool cover -html=coverage.txt
sync:
desc: "Updates the public API Go files to match the exported interface of the modules."
cmds:
- task: cli:sync
test-gen:
desc: "Generates tests for the public API."
cmds:
- task: cli:test-gen