| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- meta:
- project: gotestsum
- mount=source:
- bind: .
- path: /go/src/gotest.tools/gotestsum
- mount=buildcache:
- bind: ~/.cache/go-build
- path: /root/.cache/go-build
- mount=modcache:
- bind: ~/go/pkg/mod
- path: /go/pkg/mod
- image=builder:
- image: gotestsum-dev
- context: dobifiles/
- dockerfile: Dockerfile
- target: dev
- args:
- GOLANG_VERSION: '{env.GOLANG_VERSION:}'
- job=shell:
- use: builder
- mounts: [source, buildcache, modcache]
- interactive: true
- command: sh
- job=watch:
- use: builder
- mounts: [source, buildcache, modcache]
- interactive: true
- command: |
- filewatcher -x vendor ./dist/gotestsum -- -test.timeout 10s
- env: ['GOTESTSUM_FORMAT=short-verbose']
- depends: [binary]
- job=test-unit:
- use: builder
- mounts: [source, buildcache, modcache]
- interactive: true
- command: scripts/test-unit
- job=lint:
- use: builder
- mounts: [source, buildcache, modcache]
- command: golangci-lint run
- job=binary:
- use: builder
- mounts: [source, buildcache, modcache]
- command: bash -c 'mkdir -p dist; go build -o dist/gotestsum .'
- alias=test:
- tasks: [test-unit]
|