From 16baf31f00d6c198fd649641665f5f2eb2ede79e Mon Sep 17 00:00:00 2001 From: Paul Hewlett Date: Tue, 20 Aug 2024 10:15:53 +0100 Subject: [PATCH] fixup! Standard task runes --- taskfiles/Taskfile_azurite.yml | 1 + taskfiles/Taskfile_codeqa.yml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/taskfiles/Taskfile_azurite.yml b/taskfiles/Taskfile_azurite.yml index 1f50b90..e0d28f5 100644 --- a/taskfiles/Taskfile_azurite.yml +++ b/taskfiles/Taskfile_azurite.yml @@ -71,6 +71,7 @@ tasks: deps: [stop] cmds: - | + set -euo pipefail # [[ -z "{{.AZURITE_DATA_DIR}}" ]] && exit 0 diff --git a/taskfiles/Taskfile_codeqa.yml b/taskfiles/Taskfile_codeqa.yml index 90a82d8..a0c6fb0 100644 --- a/taskfiles/Taskfile_codeqa.yml +++ b/taskfiles/Taskfile_codeqa.yml @@ -27,6 +27,7 @@ tasks: summary: Quality assurance of code cmds: - | + set -euo pipefail which go go fix ./... which goimports @@ -38,6 +39,7 @@ tasks: summary: Quality assurance of code cmds: - | + set -euo pipefail which go go vet ./... which golangci-lint @@ -48,6 +50,7 @@ tasks: summary: Upgrade modules cmds: - | + set -euo pipefail GATEWAYVERSION=$(protoc-gen-grpc-gateway -version | cut -d',' -f1 | cut -d' ' -f2) go get -u github.com/grpc-ecosystem/grpc-gateway/v2@v${GATEWAYVERSION} go mod tidy @@ -56,4 +59,5 @@ tasks: unit-tests: summary: "run unit tests" cmds: + - which go - go test {{.GO_TEST_TAGS}} ./...