From bf9dafca5a42d47af68ee8178b797662d69541bd Mon Sep 17 00:00:00 2001 From: mo khan Date: Wed, 5 Jun 2024 11:07:38 -0600 Subject: Use mage as build system --- magefile.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 magefile.go (limited to 'magefile.go') 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", "./...") +} -- cgit v1.2.3