WordPress / action-wp-playground-pr-preview

MIT License
5 stars 1 forks source link

Support for Plugin Installation in WordPress Playground Theme Preview Action #45

Open erseco opened 6 days ago

erseco commented 6 days ago

First of all, thank you for creating and maintaining the WordPress Playground Theme Preview Action! It has proven to be a valuable tool for quickly previewing and testing changes to themes in a dedicated playground environment during pull requests.

I would like to request the addition of support for installing plugins alongside theme previews. This would greatly enhance the utility of this GitHub Action, especially for those developing plugins or themes that depend on specific plugin behavior or require compatibility checks.

Proposed Use Cases for Plugin Support:

Proposed Inputs for Plugin Support (Suggestions):

Example Usage:

- name: Preview Theme with Plugins
  uses: vcanales/action-wp-playground-pr-preview@trunk
  with: 
    github-token: ${{ secrets.GITHUB_TOKEN }}
    base-branch: main
    plugins: |
      https://downloads.wordpress.org/plugin/woocommerce.latest-stable.zip
      https://downloads.wordpress.org/plugin/elementor.latest-stable.zip
    plugin-activation: true

Benefits of Adding Plugin Support:

Thank you for considering this feature request! Your continued efforts to make the WordPress ecosystem more efficient and developer-friendly are greatly appreciated.

bgrgicak commented 3 days ago

Thank you for starting the conversation @erseco!

I wonder if it would be worth making it even more flexible. If we add support for Blueprints it would be possible to install both plugins and theme, but also run other setup steps like moving files around and importing content.