-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
86 lines (73 loc) · 1.75 KB
/
Taskfile.yml
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
---
# yaml-language-server: $schema=https://taskfile.dev/schema.json
version: '3'
vars:
ORG: github.com/aserto-dev
REPO: auth0-gw
BIN: auth0-gw
tasks:
build:
cmds:
- .ext/gobin/goreleaser build --clean --single-target --snapshot
preconditions:
- test -f .ext/gobin/goreleaser
build-all:
cmds:
- .ext/gobin/goreleaser build --clean --snapshot
preconditions:
- test -f .ext/gobin/goreleaser
release:
cmds:
- .ext/gobin/goreleaser release --clean --snapshot
preconditions:
- test -f .ext/gobin/goreleaser
lint:
cmds:
- .ext/gobin/golangci-lint run
preconditions:
- test -f .ext/gobin/golangci-lint
test:
cmds:
- .ext/gobin/gotestsum --format short-verbose -- -count=1 -v ./...
preconditions:
- test -f .ext/gobin/gotestsum
run:
cmds:
- ./dist/{{.BIN}}_{{OS}}_{{ARCH}}/{{.BIN}} {{.CLI_ARGS}}
clean:
cmds:
- rm -rf ./dist
- rm -rf ./.ext
- rm -rf ./bin
deps:
cmds:
- task: install-goreleaser
- task: install-golangci-lint
- task: install-gotestsum
install-goreleaser:
internal: true
cmds:
- task: go-install
vars:
PACKAGE: github.com/goreleaser/goreleaser/v2
VERSION: v2.3.2
install-golangci-lint:
internal: true
cmds:
- task: go-install
vars:
PACKAGE: github.com/golangci/golangci-lint/cmd/golangci-lint
VERSION: v1.61.0
install-gotestsum:
internal: true
cmds:
- task: go-install
vars:
PACKAGE: gotest.tools/gotestsum
VERSION: v1.11.0
go-install:
internal: true
env:
GOBIN: "{{.ROOT_DIR}}/.ext/gobin"
cmds:
- go install {{.PACKAGE}}@{{.VERSION}}