-
Notifications
You must be signed in to change notification settings - Fork 104
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
Move auto-sizes
to plugins folder
#972
Conversation
Co-authored-by: Pascal Birchler <pascalb@google.com>
Introduce plugins folder for standalone plugins
Merge trunk into feature/modules-to-plugins
…ance into add/plugins-test-suite
Merge trunk into feature/modules-to-plugins
Add test suite for Plugins folder
Once #975 is merged, we need to rebase this PR. |
@swissspidy @joemcgill @westonruter Could you please take another look when you have a moment? |
@joemcgill @westonruter Could you please take another look when you have a moment? |
wp: 'trunk' | ||
env: | ||
WP_ENV_PHP_VERSION: ${{ matrix.php }} | ||
WP_ENV_CORE: ${{ matrix.wp == 'trunk' && 'WordPress/WordPress' || format( 'https://wordpress.org/wordpress-{0}.zip', matrix.wp ) }} |
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.
Question: Why not use ternary expression here? Is it allowed?
WP_ENV_CORE: ${{ matrix.wp == 'trunk' && 'WordPress/WordPress' || format( 'https://wordpress.org/wordpress-{0}.zip', matrix.wp ) }} | |
WP_ENV_CORE: ${{ matrix.wp == 'trunk' ? 'WordPress/WordPress' : format( 'https://wordpress.org/wordpress-{0}.zip', matrix.wp ) }} |
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 was added as part of #544. If we need to update this, then we also have to update similar settings for other workflows (php-test.yml and php-test-standalone-plugins.yml).
Shall we open a follow-up PR to make these changes?
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.
Follow-up PR is fine. Just seems hard to read right now.
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.
@westonruter, GitHub workflow does not allow ${{ x ? 'ifTrue' : 'ifFalse' }}
ternary operator. Instead, it uses ${{ x && 'ifTrue' || 'ifFalse' }}
. Therefore, we don't need to open a follow-up PR for this work.
Summary
Follow-up work #654 (comment)
Relevant technical choices
Checklist
[Focus]
orInfrastructure
label.[Type]
label.no milestone
label.