| commit | 88c61bdd046f257e849aebf2fbe3be7c9c6f06ef | [log] [tgz] |
|---|---|---|
| author | Josh Bleecher Snyder <josharian@gmail.com> | Wed Apr 30 13:40:34 2025 -0700 |
| committer | Josh Bleecher Snyder <josharian@gmail.com> | Wed Apr 30 17:19:01 2025 -0700 |
| tree | 49e9927a2973ce5d4f1bef2c8ae16b892a633eee | |
| parent | 3e2111b1e18a39a4eba4a0afa0327b6a67acf802 [diff] |
.github/workflows: fail if go generate creates a diff TODO: treat that as a formatting step, and auto-run?
diff --git a/.github/workflows/go_test.yml b/.github/workflows/go_test.yml index 4d72733..b736432 100644 --- a/.github/workflows/go_test.yml +++ b/.github/workflows/go_test.yml
@@ -36,6 +36,12 @@ - name: Go generate run: | go generate ./... + # if go generate created a diff + if ! git diff --exit-code; then + echo "go generate created a diff" + git diff + exit 1 + fi - name: Run tests run: |