From 6d23bcb345e7152118f6a22d672abddf0f698d23 Mon Sep 17 00:00:00 2001 From: sbp-bvanb Date: Mon, 28 Oct 2024 08:25:58 +0100 Subject: [PATCH] fix: [#100] Prevent code duplication by using a Taskfile --- Taskfile.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Taskfile.yml diff --git a/Taskfile.yml b/Taskfile.yml new file mode 100644 index 0000000..8157216 --- /dev/null +++ b/Taskfile.yml @@ -0,0 +1,20 @@ +--- +version: "3" + +vars: + GOLANGCI_LINT_VERSION: v1.60.3 + +tasks: + golangci-lint-install: + silent: true + cmds: + - | + if ! golangci-lint --version | grep "has version ${golangci_lint_version}"; then + curl \ + -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh |\ + sh -s -- -b $(go env GOPATH)/bin v${golangci_lint_version} + fi + lint: + silent: true + cmds: + - task: golangci-lint-install