-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
47 lines (45 loc) · 1.03 KB
/
Copy pathTaskfile.yaml
File metadata and controls
47 lines (45 loc) · 1.03 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
# https://taskfile.dev
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: 3
tasks:
bench:
desc: run all benchmarks
cmd: "go test -bench . ./..."
cli:
desc: run the CLI
dir: "./cmd/taskkit/"
cmd: "go run . {{.CLI_ARGS}}"
env:
DEVEL: true
TASKKIT_CONFIG: ./testdata/config.yaml
cli-install:
desc: install the CLI
dir: "./cmd/taskkit/"
cmd: "go install ."
codegen:
desc: run codegen
cmds:
- "sqlc generate"
test:
desc: run all tests
cmd: "go test ./..."
release-snapshot:
desc: release (no push)
cmd: "goreleaser --snapshot --clean"
release:
prompt: "Release {{.NEXT_RELEASE}}?"
desc: release (no push)
env:
GITHUB_TOKEN: "$(gh auth token)"
vars:
NEXT_RELEASE:
sh: "svu next"
preconditions:
- "which gh"
- "which git"
- "which goreleaser"
- "which svu"
cmds:
- "git tag {{.NEXT_RELEASE}}"
- "git push origin $(svu current)"
- "goreleaser release --clean"