Skip to content

Move auto-sizes to plugins folder - #972

Merged
mukeshpanchal27 merged 41 commits into
feature/auto-sizesfrom
move/auto-sizes
Feb 19, 2024
Merged

Move auto-sizes to plugins folder#972
mukeshpanchal27 merged 41 commits into
feature/auto-sizesfrom
move/auto-sizes

Conversation

@mukeshpanchal27

Copy link
Copy Markdown
Member

Summary

Follow-up work #654 (comment)

Relevant technical choices

Checklist

  • PR has either [Focus] or Infrastructure label.
  • PR has a [Type] label.
  • PR has a milestone or the no milestone label.

mukeshpanchal27 and others added 30 commits January 18, 2024 12:25
Co-authored-by: Pascal Birchler <pascalb@google.com>
Introduce plugins folder for standalone plugins
Merge trunk into feature/modules-to-plugins
Merge trunk into feature/modules-to-plugins
@mukeshpanchal27

Copy link
Copy Markdown
Member Author

Once #975 is merged, we need to rebase this PR.

@mukeshpanchal27

Copy link
Copy Markdown
Member Author

@swissspidy @joemcgill @westonruter Could you please take another look when you have a moment?

Comment thread phpunit.xml.dist Outdated
Comment thread plugins/.gitkeep Outdated
Comment thread tests/plugins/test-plugin/test-plugin.php Outdated
Comment thread tests/bootstrap.php Outdated
Comment thread tests/bootstrap.php Outdated
Comment thread tests/bootstrap.php
Comment thread plugins.json Outdated
@mukeshpanchal27

Copy link
Copy Markdown
Member Author

@joemcgill @westonruter Could you please take another look when you have a moment?

Comment thread .github/workflows/php-test-plugins.yml
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 ) }}

Copy link
Copy Markdown
Member

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?

Suggested change
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 ) }}

Copy link
Copy Markdown
Member Author

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?

Copy link
Copy Markdown
Member

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.

Copy link
Copy Markdown
Member Author

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.

Comment thread composer.json
Comment thread tests/bootstrap.php Outdated
Comment thread tests/bootstrap.php Outdated
Comment thread tests/bootstrap.php Outdated
Comment thread tests/bootstrap.php Outdated
Comment thread tests/bootstrap.php Outdated
Comment thread tests/bootstrap.php Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Infrastructure Issues for the overall performance plugin infrastructure no milestone PRs that do not have a defined milestone for release [Type] Enhancement A suggestion for improvement of an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants