Skip to content

Commit

Permalink
Improve CI check for uncommitted changes after generate
Browse files Browse the repository at this point in the history
  • Loading branch information
mraerino committed Jul 20, 2024
1 parent 35f7fe6 commit d300ee8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ jobs:
terraform_version: "1.9.2"
terraform_wrapper: false
- run: go generate ./...
- name: git diff
- name: Check for uncommitted changes
run: |
git diff --compact-summary --exit-code || \
test -z "$(git status --porcelain)" || \
(echo; echo "Unexpected difference in directories after code generation. Run 'go generate ./...' command and commit."; exit 1)
# Run acceptance tests in a matrix with Terraform CLI versions
Expand Down

0 comments on commit d300ee8

Please sign in to comment.