Add a GitHub Actions workflow that runs on pull requests and blocks merging if linting fails.
What it should do
- Run on every PR targeting
master
go vet ./...
go build ./...
go test ./...
- Fail the check if any step fails
- Required status check in branch protection so PRs can't merge without passing
Nice to have
staticcheck or golangci-lint for deeper analysis
- Cache Go modules between runs for speed
Add a GitHub Actions workflow that runs on pull requests and blocks merging if linting fails.
What it should do
mastergo vet ./...go build ./...go test ./...Nice to have
staticcheckorgolangci-lintfor deeper analysis