summaryrefslogtreecommitdiff
path: root/magefile.go
diff options
context:
space:
mode:
Diffstat (limited to 'magefile.go')
-rw-r--r--magefile.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/magefile.go b/magefile.go
new file mode 100644
index 0000000..7831703
--- /dev/null
+++ b/magefile.go
@@ -0,0 +1,17 @@
+//go:build mage
+// +build mage
+
+package main
+
+import (
+ "github.com/magefile/mage/sh"
+)
+
+// Default target to run when none is specified
+// If not set, running mage will list available targets
+var Default = Test
+
+// Run the unit tests
+func Test() error {
+ return sh.RunV("go", "test", "-v", "./...")
+}