Skip to content

Commit

Permalink
check for 'go generate' missing ErrCounts
Browse files Browse the repository at this point in the history
  • Loading branch information
harshavardhana committed Oct 30, 2023
1 parent d822cfb commit 2f59e36
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ jobs:
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
$(go env GOPATH)/bin/golangci-lint run --config ./.golangci.yml
go vet ./...
go install -v github.com/tinylib/msgp@latest
go install -v golang.org/x/tools/cmd/stringer@latest
go generate ./... >/dev/null
(! git diff --name-only | grep '_gen.go$$') || (echo "Non-committed changes in auto-generated code is detected, please commit them to proceed." && false)
test:
name: Testing Go ${{ matrix.go-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -61,3 +66,5 @@ jobs:
run: |
go test -v -race ./...
105 changes: 100 additions & 5 deletions replication-api_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2f59e36

Please sign in to comment.