-
Notifications
You must be signed in to change notification settings - Fork 4
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
Update/i18n workflow #559
Update/i18n workflow #559
Conversation
Also, I should note that I opened this PR against |
✅ i18n workflow passed as expected with no i18n file changes needed. |
✅ Command fails as expected with i18n text string edits that are not reflected in the i18n files. I'll revert the string change. |
1 flaky test on run #3698 ↗︎
Details:
vendor/newfold-labs/wp-module-ecommerce/tests/cypress/integration/Home/commerceHomePage.cy.js • 1 flaky test
Review all test suite changes for PR #559 ↗︎ |
1 flaky test on run #3707 ↗︎
Details:
vendor/newfold-labs/wp-module-ecommerce/tests/cypress/integration/Home/commerceHomePage.cy.js • 1 flaky test
Review all test suite changes for PR #559 ↗︎ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@circlecube This appears to have more than just I18N changes?
* main: update min wp version
@wpscholar Yes, It was started before the last release. I got it cleaned up merging |
The module updates in the composer file are just bumping the versions to what is installed and not updating the modules - they've already been updated main, just not bumped in the composer file |
Proposed changes
Earlier I assumed the hash was random and unique everytime the make-json command ran. Turns out I was wrong. I didn't dig in to determine what the parameters are for the hash, but tested locally and see that they remain consistent each run (even when i18n strings are added).
This simplifies the workflow and the json files can be updated without needing a rename command (which never worked in github runner).
I'm also removing the commit step since it wasn't working either, and I'm not sure we're quite ready for it anyway. I'm just having the workflow check if there are any file changes and if so failing and echo that the
composer run i18n
script should be run locally to update the files if there are changes, we can disregard for small releases, but should keep it updated as best we can and can look at updating it in the future to run the command and commit the files in a release branch.This at least brings things to a better place than an i18n step that always fails with no clear direction.
I think once we get to a place where we are ready to update this to a reusable workflow file we can figure out the commit step.
Type of Change
Checklist
Further comments