Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for changes in generated files in GitHub workflow #844

Merged
merged 1 commit into from
Jul 11, 2023

Conversation

kate-osborn
Copy link
Contributor

@kate-osborn kate-osborn commented Jul 10, 2023

Problem: If we forget to run make generate, the out-of-date code can be committed to the main branch. See an example of a problem here.

Solution: Add a step to the Checks and variables job in the ci workflow that checks if the generated files have changed. If they have changed, the job will fail, and the PR will be blocked.

Testing: Verified that the job works as expected.

@kate-osborn kate-osborn requested a review from a team as a code owner July 10, 2023 20:47
@github-actions github-actions bot added the chore Pull requests for routine tasks label Jul 10, 2023
@kate-osborn kate-osborn force-pushed the chore/generatE branch 2 times, most recently from 297a04a to aff3b50 Compare July 10, 2023 20:58
@kate-osborn kate-osborn changed the title Test Check for changes in generated files in GitHub workflow Jul 10, 2023
@kate-osborn kate-osborn merged commit 4459662 into nginxinc:main Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Pull requests for routine tasks
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants