summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a55652e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,11 @@
+# Static linting of source files. See .golangci.yaml for options.
+lint:
+ golangci-lint run
+
+# Run tests with race detector, measure coverage.
+test:
+ go test -race -covermode=atomic -coverprofile=cover.out ./...
+
+# Open coverage info in browser
+cover: test
+ go tool cover -html=cover.out