diff options
| author | mo khan <mo@mokhan.ca> | 2024-06-05 11:07:38 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2024-06-05 11:07:38 -0600 |
| commit | bf9dafca5a42d47af68ee8178b797662d69541bd (patch) | |
| tree | 24fc19a7de595434955324c3560191b23b33b0b9 /magefile.go | |
| parent | 197da8386372f84edd7f8f6354512c4e2b220697 (diff) | |
Use mage as build system
Diffstat (limited to 'magefile.go')
| -rw-r--r-- | magefile.go | 17 |
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", "./...") +} |
