test: stop running gofmt ./

gofmt ./ will recursively check the .git directory. So use *.go for
gofmt instead