Files
query-orchestration/scripts/Taskfile.yml
T

86 lines
1.6 KiB
YAML
Raw Normal View History

2025-01-10 11:12:03 +00:00
---
2024-12-19 11:38:57 +00:00
# https://taskfile.dev
version: "3"
2024-12-19 11:38:57 +00:00
2025-01-10 12:58:14 +00:00
vars:
CONTEXT: ..
OUT_DIR: out
2024-12-19 11:38:57 +00:00
includes:
test:
2025-01-10 11:12:03 +00:00
dir: "{{.CONTEXT}}"
2024-12-19 11:38:57 +00:00
taskfile: tests.yml
docker:
dir: "."
2024-12-19 11:38:57 +00:00
taskfile: docker.yml
2025-01-15 19:45:51 +00:00
openapi:
2025-01-10 11:12:03 +00:00
dir: "{{.CONTEXT}}"
taskfile: openapi-scripts.yml
2024-12-19 11:38:57 +00:00
compose:
2025-01-10 11:12:03 +00:00
dir: "{{.CONTEXT}}"
taskfile: local-deployments.yml
2024-12-19 11:38:57 +00:00
db:
2025-01-10 11:12:03 +00:00
dir: "{{.CONTEXT}}"
2024-12-19 11:38:57 +00:00
taskfile: database.yml
tasks:
fullsuite:
- task: build
- task: lint
- task: test:unit
- task: test:endtoend
precommit:
- task: lint:short
deps:tidy:
- go mod tidy
- go mod vendor
build:
- task: deps:tidy
- task: generate
- task: docker:build
generate:clean:
run: once
deps:
- db:generate:clean
- openapi:generate
- test:mocks:generate
2025-03-05 13:50:43 +00:00
- docs:generate
cmds:
- go generate ./...
2024-12-19 11:38:57 +00:00
generate:
run: once
2024-12-19 11:38:57 +00:00
deps:
- db:generate
2025-01-15 19:45:51 +00:00
- openapi:generate
- test:mocks:generate
2025-03-05 13:50:43 +00:00
- docs:generate
cmds:
- go generate ./...
2024-12-19 11:38:57 +00:00
lint:
deps:
- generate
cmds:
- task: go:lint
- task: yaml:lint
- task: json:lint
- task: docker:lint
- task: openapi:lint
- task: db:lint
- task: compose:lint
lint:short:
deps:
- go:lint
- yaml:lint
- json:lint
- docker:lint
- openapi:lint
- compose:lint:short
go:lint: golangci-lint run --fix {{.CLI_ARGS}}
yaml:lint: yamllint . -s {{.CLI_ARGS}}
json:lint: jsonlint devbox.json -q -s -i {{.CLI_ARGS}}
2025-03-05 13:50:43 +00:00
docs:generate:
run: once
2024-12-19 11:38:57 +00:00
cmds:
2025-03-05 13:50:43 +00:00
- gomarkdoc --template-file file=docs/templates/root.gotxt ./cmd/...