Files
query-orchestration/scripts/Taskfile.yml
T
Michael McGuinness b8302344b4 Merged in feature/ecr (pull request #159)
Test

* tests

* tar

* go

* tmp

* test

* go

* go

* go

* config

* goup

* versioning

* order

* cleanup

* git

* smallopts

* flags

* lessisgood

* go

* order

* ordermatters

* order

* cc

* test
2025-06-02 10:44:45 +00:00

88 lines
2.2 KiB
YAML

---
# https://taskfile.dev
version: "3"
vars:
OUT_DIR: out
includes:
test:
dir: ".."
taskfile: tests.yml
docker:
dir: ".."
taskfile: docker.yml
openapi:
dir: ".."
taskfile: openapi-scripts.yml
compose:
dir: ".."
taskfile: local-deployments.yml
db:
dir: ".."
taskfile: database.yml
tasks:
fullsuite:
- task: build:deps
- task: fullsuite:build
- task: test:functional
fullsuite:build:
internal: true
deps:
- task: build
- task: lint
fullsuite: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:
deps:
- build:deps
cmd:
task: docker:build
build:deps:
internal: true
run: once
cmds:
- task: deps:tidy
- task: generate
generate:
run: once
deps:
- db:generate
- openapi:generate
- test:mocks:generate
- docs:generate
cmds:
- task: go:generate
go:generate: go generate ./...
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}}
docs:generate:
run: once
cmds:
- gomarkdoc --template-file file=docs/templates/root.gotxt ./cmd/...
aws:login: aws sso login
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