summaryrefslogtreecommitdiff
path: root/Taskfile.go.yaml
diff options
context:
space:
mode:
authorDJ O'Leary <dijitol@proton.me>2026-07-08 01:06:20 +0200
committerDJ O'Leary <dijitol@proton.me>2026-07-08 01:06:20 +0200
commit4d088c9354c17c58478cf121349a314b4e0dd322 (patch)
tree4ad0635107bd4ec741ab82fd738662bc32ae073b /Taskfile.go.yaml
parent970b9f872254612b673c3a09579ed902cade3c99 (diff)
set up and add sync package
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