Skip to content

Add automatic update of the generated code #142

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

Merged
merged 1 commit into from
May 17, 2022

Conversation

tucksaun
Copy link
Member

@tucksaun tucksaun commented May 16, 2022

Following the discussion in #138

With this PR the generated code is checked for update every four hours from 8 to 18 UTC every weekday.
If a change is detected, tests are run and if they pass the updated code is committed and pushed.
(please note this push will not trigger the CI).
The workflow can also be triggered manually (workflow_dispatch) if needed.

I also disabled the fact that the workflow fails for pull requests when the code is not updated because there's a high chance that the code gets updated between the PR opening and the fact that it got merged.
Nonetheless, the check is kept for the releasing workflow and the code is also updated within each PR (but not committed) to ensure it is up-to-date before running the tests.

Finally, some cache on dependencies has been added to speed up the check that will be run several times a day.

@fabpot let me know if this is OK for you or if you need some tweaks.

@fabpot
Copy link
Contributor

fabpot commented May 17, 2022

Fantastic!
Thank you.

@fabpot fabpot merged commit 4842040 into symfony-cli:main May 17, 2022
@tucksaun tucksaun deleted the autogenerate branch May 17, 2022 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy