Skip to content

Commit 5ccc95b

Browse files
committed
Generalize the CI check for the test list to all auto-generated files
At the moment, test_list.go is the only file that we generate using go:generate. We will add another one in the next commit though, and we might add even more in the future; it's useful to have a single check on CI that checks them all.
1 parent cdb1d76 commit 5ccc95b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ jobs:
134134
# ensure our vendor directory matches up with our go modules
135135
run: |
136136
go mod vendor && git diff --exit-code || (echo "Unexpected change to vendor directory. Run 'go mod vendor' locally and commit the changes" && exit 1)
137-
- name: Check Integration Test List
138-
# ensure our integration test list is up to date
137+
- name: Check All Auto-Generated Files
138+
# ensure all our auto-generated files are up to date
139139
run: |
140-
go generate pkg/integration/tests/tests.go && git diff --exit-code || (echo "Integration test list not up to date. Run 'go generate pkg/integration/tests/tests.go' locally and commit the changes" && exit 1)
140+
go generate ./... && git diff --quiet || (git status -s; echo "Auto-generated files not up to date. Run 'go generate ./...' locally and commit the changes" && exit 1)
141141
shell: bash # needed so that we get "-o pipefail"
142142
- name: Check Filenames
143143
run: scripts/check_filenames.sh

0 commit comments

Comments
 (0)