Little helper to run CNCF's k3s in Docker
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
k3d/vendor/github.com/goodhosts/hostsfile/magefile.go

36 lines
636 B

//go:build mage
// +build mage
package main
import (
"fmt"
"github.com/magefile/mage/mg"
"github.com/magefile/mage/sh"
//mage:import install
"github.com/goodhosts/hostsfile/mage/install"
//mage:import test
"github.com/goodhosts/hostsfile/mage/test"
)
// run everything for ci process (install deps, lint, coverage, build)
func Ci() error {
fmt.Println("Running Continuous Integration...")
mg.Deps(
install.Dependencies,
Lint,
test.Coverage,
test.Build)
return nil
}
// run the linter
func Lint() error {
mg.Deps(install.Golangcilint)
fmt.Println("Running Linter...")
return sh.RunV("golangci-lint", "run")
}