Skip to content

Commit d722e2b

Browse files
haosbRuslan Usmanov
andauthored
[internal] Add gotestsum for tests (#382)
Signed-off-by: Ruslan Usmanov <ruslanusmanov@Ruslans-MacBook-Pro-2.local> Co-authored-by: Ruslan Usmanov <ruslanusmanov@Ruslans-MacBook-Pro-2.local>
1 parent 36e49b0 commit d722e2b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Taskfile.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ vars:
4040
4141
cgoTags: "clionly dfrunsecurity dfrunnetwork dfrunmount dfssh containers_image_openpgp osusergo exclude_graphdriver_devicemapper netgo no_devmapper static_build cni"
4242
goTags: "clionly dfrunsecurity dfrunnetwork dfrunmount dfssh containers_image_openpgp"
43+
testsumFormat: '{{if eq .GITHUB_ACTIONS "true"}}github-actions{{else}}pkgname-and-test-fails{{end}}'
4344

4445
cgoDevLDFlags: "-linkmode external -extldflags=-static -s -w -X 'github.com/deckhouse/deckhouse-cli/internal/version.Version=local-dev' {{ .werfLDFlags }}"
4546
goDevLDFlags: "-s -w -X 'github.com/deckhouse/deckhouse-cli/internal/version.Version=local-dev' {{ .werfLDFlags }}"
@@ -91,7 +92,7 @@ tasks:
9192
_test:go:
9293
internal: true
9394
cmds:
94-
- go test -count=1 -tags="{{ .cgoTags }}" ./...
95+
- go run gotest.tools/gotestsum@latest -f {{ .testsumFormat }} -- -count=1 -tags="{{ .cgoTags }}" ./...
9596

9697
build:
9798
desc: Build d8 binary for personal usage

0 commit comments

Comments
 (0)