Codefresh common go modules
Using pre-commit hooks:
When installed correctly, this will run golangci-lint
before every commit, and go test
before every push. Any error will cause the commit or push to fail.
- Install:
brew install pre-commit
- Install the git hook scripts:
pre-commit install -t pre-commit -t pre-push