-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathTaskfile.yml
More file actions
43 lines (37 loc) · 1.42 KB
/
Taskfile.yml
File metadata and controls
43 lines (37 loc) · 1.42 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
version: '3'
dotenv: ['.env']
env:
BUILD_ROOT:
sh: realpath ".build/"
PATH: '{{.BUILD_ROOT}}/bin:{{.BUILD_ROOT}}/bin/go:{{.BUILD_ROOT}}/go/bin:{{.BUILD_ROOT}}/node/bin:{{.PATH}}'
# modcacherw instructs go command(s) to leave newly-created dirs in the module cache at their default permissions
# instead of making them read-only.
GOFLAGS: -modcacherw
vars:
OS: fail "In Task, OS is a function not an env var. Use 'OS' (without '.') to get the OS instead of '.OS'. See https://taskfile.dev/reference/templating/#task-functions."
ARCH: fail "In Task, ARCH is a function not an env var. Use 'ARCH' (without '.') to get the ARCH instead of '.ARCH'. See https://taskfile.dev/reference/templating/#task-functions."
BUILD_ROOT:
sh: realpath ".build/"
GO_BUILD_ROOT: '{{.BUILD_ROOT}}/go'
GO_VERSION: 1.24.3
PATH_PREFIX: PATH={{.BUILD_ROOT}}/bin:{{.GO_BUILD_ROOT}}/bin:{{.BUILD_ROOT}}/bin/go:$PATH GOBIN={{ .BUILD_ROOT }}/bin/go GOROOT=
includes:
build: .tasks/build.yml
cleanup: .tasks/cleanup.yml
docs: .tasks/docs.yml
generate: .tasks/generate.yml
lint: .tasks/lint.yml
local: .tasks/local.yml
mock: .tasks/mock.yml
release: .tasks/release.yml
test: .tasks/test.yml
tools: .tasks/tools.yml
tasks:
default:
desc: "Show available tasks"
cmds:
- task --list-all
silent: true
ready:
desc: "Prepare code for commit (docs, lint, tidy)"
deps: [docs:default, lint:default, build:tidy]