1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00
kyverno/vendor/gotest.tools/dobi.yaml

56 lines
924 B
YAML

meta:
project: gotesttools
mount=source:
bind: .
path: /go/src/gotest.tools
mount=depsources:
bind: ./.depsources
path: /go/pkg/dep/sources
image=builder:
image: gotesttools-dev
context: .
target: dev
args:
GOLANG_VERSION: '{env.GOLANG_VERSION:}'
image=linter:
image: gotesttools-lint
context: .
target: linter
job=shell:
use: builder
mounts: [source, depsources]
interactive: true
command: sh
job=watch:
use: builder
mounts: [source]
interactive: true
command: |
filewatcher -x vendor gotestsum -- -test.timeout 10s
env:
- 'GOTESTSUM_FORMAT=short-verbose'
- 'GOTESTTOOLS_DEBUG={env.GOTESTTOOLS_DEBUG:}'
job=test-unit:
use: builder
mounts: [source]
interactive: true
command: scripts/test-unit
job=deps:
use: builder
mounts: [source, depsources]
command: dep ensure
job=lint:
use: linter
mounts: [source]
alias=test:
tasks: [test-unit]