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