mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
43 lines
837 B
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
|