Files
query-orchestration/scripts/Taskfile.yml
T

86 lines
2.1 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:
OUT_DIR: out
2024-12-19 11:38:57 +00:00
includes:
test:
dir: ".."
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:
dir: ".."
taskfile: openapi-scripts.yml
2024-12-19 11:38:57 +00:00
compose:
dir: ".."
taskfile: local-deployments.yml
2024-12-19 11:38:57 +00:00
db:
dir: ".."
2024-12-19 11:38:57 +00:00
taskfile: database.yml
tasks:
fullsuite:
2025-04-25 17:02:50 +00:00
- task: build:deps
- task: fullsuite:test
fullsuite:test:
2025-04-25 17:02:50 +00:00
internal: true
deps:
- task: test:functional
- task: lint
graph: psrecord "task fullsuite" --plot out/fullsuite.png --interval 0.1 --include-children
precommit:
- task: lint
deps:tidy:
- go mod tidy
- go mod vendor
build:
2025-04-25 17:02:50 +00:00
deps:
- build:deps
cmd:
task: docker:build
2025-04-25 17:02:50 +00:00
build:deps:
internal: true
cmds:
- task: deps:tidy
- task: 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:
2025-04-25 17:02:50 +00:00
- task: go:generate
go:generate: go generate ./...
2024-12-19 11:38:57 +00:00
lint:
deps:
- task: db:lint
- task: go:lint
- task: yaml:lint
- task: json:lint
- task: docker:lint
- task: openapi:lint
- task: compose:lint
go:lint: golangci-lint run {{.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/...
aws:login: aws sso login
2025-04-22 19:57:35 +00:00
aws:textract:credentials:
- |
sed -i '/^AWS_REGION_TEXTRACT\|^AWS_ACCESS_KEY_ID_TEXTRACT\|^AWS_SECRET_ACCESS_KEY_TEXTRACT\|^AWS_SESSION_TOKEN_TEXTRACT/d' .env
echo "AWS_REGION_TEXTRACT=$(aws configure get region --profile $AWS_PROFILE)" >> .env
CREDENTIALS_JSON=$(aws configure export-credentials --profile $AWS_PROFILE)
echo "AWS_ACCESS_KEY_ID_TEXTRACT=$(echo $CREDENTIALS_JSON | jq -r '.AccessKeyId')" >> .env
echo "AWS_SECRET_ACCESS_KEY_TEXTRACT=$(echo $CREDENTIALS_JSON | jq -r '.SecretAccessKey')" >> .env
echo "AWS_SESSION_TOKEN_TEXTRACT=$(echo $CREDENTIALS_JSON | jq -r '.SessionToken')" >> .env