github.com/beauknowssoftware/makehcl@v0.0.0-20200322000747-1b9bb1e1c008/build/prebuild.hcl (about) 1 // go prebuild 2 rule { 3 target = ".import" 4 tee_target = true 5 command = "tools/goimports -w ." 6 dependencies = concat(glob("**.go"), "go.mod", "go.sum", "tools/goimports") 7 } 8 rule { 9 target = ".test" 10 tee_target = true 11 dependencies = concat(".import", glob("**/testdata/**")) 12 command = "go test -count=1 ./..." 13 } 14 rule { 15 target = ".lint" 16 tee_target = true 17 dependencies = [".test", "tools/golangci-lint"] 18 command = "tools/golangci-lint run --fix" 19 }