From 5741a8eddfc28f68da8cc86e5ddf7f18dbee530e Mon Sep 17 00:00:00 2001 From: Piotr Icikowski Date: Thu, 5 Jan 2023 23:58:47 +0100 Subject: [PATCH] fix(taskfile): remove generated files info --- tasks/build.yaml | 4 +--- tasks/dist.yaml | 3 ++- tasks/test.yaml | 9 +++------ 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/tasks/build.yaml b/tasks/build.yaml index d2b4d1b..5f4b594 100644 --- a/tasks/build.yaml +++ b/tasks/build.yaml @@ -17,13 +17,11 @@ tasks: GOOS: "{{ .goos | default OS }}" GOARCH: "{{ .goarch | default ARCH }}" cmds: - - go build -ldflags "{{ .flags_base }} {{ .flags_extra }}" -o ../target/goosymock_${GOOS}_${GOARCH}{{ .extension }} . + - go build -ldflags "{{ .flags_base }} {{ .flags_extra }}" -o ../target/binaries/goosymock_${GOOS}_${GOARCH}{{ .extension }} . sources: - "**/*.go" - go.mod - go.sum - generates: - - ../target/goosymock_{{ .goos | default OS }}_{{ .goarch | default ARCH }}{{ .extension }} dynamic: desc: Build a dynamic binary cmds: diff --git a/tasks/dist.yaml b/tasks/dist.yaml index a899e5f..30559b6 100644 --- a/tasks/dist.yaml +++ b/tasks/dist.yaml @@ -23,4 +23,5 @@ tasks: cmds: - helm lint goosymock - helm package goosymock --app-version "{{ .GIT_TAG }}" --version "{{ .GIT_TAG }}" - - mv goosymock-{{ .GIT_TAG }}.tgz ../../target + - mkdir -p ../../target/chart + - mv goosymock-{{ .GIT_TAG }}.tgz ../../target/chart diff --git a/tasks/test.yaml b/tasks/test.yaml index 4aa0e2b..b528ae0 100644 --- a/tasks/test.yaml +++ b/tasks/test.yaml @@ -22,14 +22,11 @@ tasks: cover: desc: Run tests and build coverage report cmds: - - mkdir -p ../target - - go test ./... -race -p 1 -v -covermode atomic -coverprofile ../target/cover.out - - go tool cover -html ../target/cover.out -o ../target/cover.html + - mkdir -p ../target/tests + - go test ./... -race -p 1 -v -covermode atomic -coverprofile ../target/tests/cover.out + - go tool cover -html ../target/tests/cover.out -o ../target/tests/cover.html sources: - "**/*.go" - go.mod - go.sum - generates: - - ../target/cover.out - - ../target/cover.html