This commit is contained in:
2023-12-05 19:03:27 +00:00
commit 6859e01192
11 changed files with 288 additions and 0 deletions

22
magefile.go Normal file
View File

@@ -0,0 +1,22 @@
//go:build mage
package main
import (
"github.com/magefile/mage/sh"
)
// Build builds the binary
func Build() error {
return sh.RunV("go", "build", "-o", "gsquash", "main.go")
}
// Install installs the binary
func Install() error {
return sh.RunV("go", "install")
}
// Test runs the tests
func Test() error {
return sh.RunV("go", "test", "./...")
}