community-themes icon indicating copy to clipboard operation
community-themes copied to clipboard

Playground GitHub Action Improvement

Open kafleg opened this issue 1 year ago • 5 comments

Thank you for adding Playground as GitHub action and that is a great addition for us to test PR for community themes. I would like to add some changes in the current setup,

  • Can we add demo content so that while checking the theme, we can see the content as well? https://github.com/WordPress/theme-test-data
  • Enable debug mode.

Thank you

kafleg avatar Apr 24 '24 05:04 kafleg

I believe this is blocked by https://github.com/WordPress/theme-test-data/issues/82

carolinan avatar Apr 24 '24 06:04 carolinan

Thank you for adding Playground as GitHub action and that is a great addition for us to test PR for community themes. I would like to add some changes in the current setup,

  • Can we add demo content so that while checking the theme, we can see the content as well? https://github.com/WordPress/theme-test-data

Using the Query API

https://playground.wordpress.net/?php=8.0&wp=6.4&storage=none&networking=yes&import-content=https://raw.githubusercontent.com/WordPress/theme-test-data/master/themeunittestdata.wordpress.xml

Will import the Theme Unit Test data, except the images that are currently blocked per @carolinan's link.

There is work being done to get the images to correctly import.


  • Enable debug mode.

You can enable debug mode in Playground using the following syntax in a blueprint.json file

{
	"steps": [
		{
			"step": "defineWpConfigConsts",
			"consts": {
				"WP_DEBUG": true,
				"WP_DEBUG_LOG": true
			},
			"method": "define-before-run"
		}
	]
}

flexseth avatar Apr 24 '24 22:04 flexseth

There is work being done to get the images to correctly import.

Is there work happening outside the linked issue? I want to know, before I start trying to move the images to GitHub.

carolinan avatar Apr 25 '24 04:04 carolinan

@carolinan here is the link:

  • https://github.com/WordPress/wordpress-playground/pull/1250

flexseth avatar Apr 25 '24 06:04 flexseth

Thank you.

carolinan avatar Apr 25 '24 06:04 carolinan