-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Run genstrings in CI to validate LocalizedString usages
#19553
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| #!/bin/bash -eu | ||
|
|
||
| echo "--- :rubygems: Setting up Gems" | ||
| install_gems | ||
|
|
||
| echo "--- :cocoapods: Setting up Pods" | ||
| install_cocoapods | ||
|
|
||
| echo "--- :writing_hand: Copy Files" | ||
| mkdir -pv ~/.configure/wordpress-ios/secrets | ||
| cp -v fastlane/env/project.env-example ~/.configure/wordpress-ios/secrets/project.env | ||
|
|
||
| echo "--- Lint Localized Strings Format" | ||
| bundle exec fastlane generate_strings_file_for_glotpress skip_commit:true | ||
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -123,3 +123,10 @@ steps: | |
| plugins: *common_plugins | ||
| agents: | ||
| queue: "android" | ||
| # Runs the `.strings` generation automation to ensure all the | ||
| # `LocalizedString` calls in the code can be correctly parsed by Apple's | ||
| # `genstrings`. | ||
| - label: "Lint Localized Strings Format" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not feeling super inspired here tbh… Maybe |
||
| command: .buildkite/commands/lint-localized-strings-format.sh | ||
| plugins: *common_plugins | ||
| env: *common_env | ||

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.
This line made me go down a rabbit hole thinking about whether we can optimize how we generate the pods cache further #19551.