Skip to content

Commit

Permalink
ci: fail when generate causes changes
Browse files Browse the repository at this point in the history
  • Loading branch information
crhntr committed Mar 8, 2023
1 parent 09b39a4 commit 088b1da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v3

- name: Ensure Generate Succeeds and Does Not Make Changes
run: |
go generate ./...
git status --porcelain # When this fails, things have changed.
- name: Build
run: go build -v ./...

Expand Down

0 comments on commit 088b1da

Please sign in to comment.