Files
stack/tests/integration/Taskfile.yaml

43 lines
837 B
YAML

version: "3"
vars:
PKG: "./suite"
RUN: ".*"
VERBOSE: "false"
PARALLEL: "true"
FAILFAST: "false"
DEBUG: "false"
REPEAT: 0
tasks:
default:
cmds:
- task: lint
- task: tests
lint:
cmds:
- golangci-lint run --fix --allow-parallel-runners --config ./../../.golangci.yml
tests:
deps: [run-docker-compose]
cmds:
- >
ginkgo --vet ""
{{if eq .VERBOSE "true"}}-v{{end}}
{{if eq .PARALLEL "true"}}-p{{end}}
{{if eq .FAILFAST "true"}}--fail-fast{{end}}
--timeout=10m
--focus-file "{{.RUN}}"
--repeat {{.REPEAT}}
{{if eq .DEBUG "true"}}--output-interceptor-mode=none{{end}}
{{.PKG}}
run-docker-compose:
cmds:
- docker compose up -d --remove-orphans
cleanup:
cmds:
- docker compose down -v