forked from charmbracelet/catwalk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
55 lines (48 loc) · 1.21 KB
/
Taskfile.yaml
File metadata and controls
55 lines (48 loc) · 1.21 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
version: '3'
tasks:
generate:
desc: Generate OpenRouter models
aliases: [gen]
cmds:
- go run cmd/openrouter/main.go
lint:
desc: Run linters
cmds:
- golangci-lint run ./...
lint:fix:
desc: Run linters and fix issues
cmds:
- golangci-lint run --fix ./...
fmt:
desc: Format code
cmds:
- go fmt ./...
modernize:
desc: Modernize code
cmds:
- modernize ./...
install:
desc: Install catwalk locally
cmds:
- go install -v .
run:
desc: Run catwalk
aliases: [default]
cmds:
- go run .
release:
desc: Create and push a new tag following semver
vars:
NEXT:
sh: svu next --always || go run github.com/caarlos0/svu/v3@latest next --always
prompt: "This will release {{.NEXT}}. Continue?"
preconditions:
- sh: '[ $(git symbolic-ref --short HEAD) = "main" ]'
msg: Not on main branch
- sh: "[ $(git status --porcelain=2 | wc -l) = 0 ]"
msg: "Git is dirty"
cmds:
- git commit --allow-empty -m "{{.NEXT}}"
- git tag --annotate --sign -m "{{.NEXT}}" {{.NEXT}} {{.CLI_ARGS}}
- echo "Pushing {{.NEXT}}..."
- git push origin main --follow-tags