summaryrefslogtreecommitdiff
path: root/Taskfile.go.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'Taskfile.go.yaml')
-rw-r--r--Taskfile.go.yaml30
1 files changed, 30 insertions, 0 deletions
diff --git a/Taskfile.go.yaml b/Taskfile.go.yaml
new file mode 100644
index 0000000..495aa59
--- /dev/null
+++ b/Taskfile.go.yaml
@@ -0,0 +1,30 @@
+# yaml-language-server: $schema=https://taskfile.dev/schema.json
+version: "3"
+
+tasks:
+ test:
+ desc: run go tests
+ cmd: go test -v ./...
+
+ test:coverage:
+ desc: run go tests
+ cmds:
+ - cmd: go test -v -coverprofile=tmp/cover.out ./...
+ - cmd: go tool cover -html=tmp/cover.out -o=tmp/cover.html
+ - cmd: xdg-open tmp/cover.html
+
+ docs:
+ desc: open autogenerated code documentation
+ cmd: go tool pkgsite -open
+
+ lint:
+ desc: run various linters
+ cmds:
+ - cmd: golangci-lint version
+ - cmd: golangci-lint run
+
+ lint:fix:
+ desc: run various linters
+ cmds:
+ - cmd: golangci-lint version
+ - cmd: golangci-lint run --fix