woocommerce/plugins/woocommerce-blocks/.github/workflows
Alba Rincón 75184ae22d Add migration strategy and load blockified templates (https://github.com/woocommerce/woocommerce-blocks/pull/6538)
* Increase `schema_version` to add the new `wc_blocks_use_blockified_templates` flag

If the schema version stored on the db is <= 260 means the plugin is being updated
to the new version and we should keep using the old templates, not the blockified ones.

* After the theme is switched we check if we need to update the flag to
start loading the blockified templates or not.

* Get the templates from the blockified folder if the flag is set to true on the db

* Add temporary blockified template for testing purposes

* Inline variable

* Improve comment

* Use blockified templates on new installs with block themes only

* Don't use blockified templates when switching to a non FSE theme

* Fix condition

* Add tests for the option value

* Move the check to use blockified templates

* WIP

* WIP

* Add migration strategy

* Move the blockified templates to the templates folder and filter them depending on the option

* Fix tests and start using the Options constants

* Fix migration, the `should_use_blockified_product_grid_templates` and tests

* Rename tests and move to Utils folder

* add Migration class test

* try

* remove PHP

* add composer

* Replace the blockified templates with a temporary version

* Fix tests

* add comment

* Add feature gating for experimental builds

* Inject the package to the controller

* test

* Change blocks.ini

* debug

* Remove debug info

* fix test

* fix tests

* try now

* using composer cache

* install deps

* test

* Remove unnecessary extra key

* Add cache actions

* Undo tests change

* Fix readme format

Co-authored-by: Luigi <gigitux@gmail.com>
2022-07-06 09:51:39 +02:00
..
approved-with-labels.yml Update GitHub actions/setup-node and add optionalDependencies handling (https://github.com/woocommerce/woocommerce-blocks/pull/6032) 2022-03-23 08:41:43 +01:00
automate-team-review-assignment-config.yml Only assign a reviewer when a PR is ready for review (https://github.com/woocommerce/woocommerce-blocks/pull/6461) 2022-05-27 18:05:54 +07:00
bundle-size.yml Update GitHub actions/setup-node and add optionalDependencies handling (https://github.com/woocommerce/woocommerce-blocks/pull/6032) 2022-03-23 08:41:43 +01:00
check-modified-assets.yml Cache node_modules between workflows (https://github.com/woocommerce/woocommerce-blocks/pull/6404) 2022-05-24 12:42:54 +01:00
close-stale-issues.yml Try to fix E2E tests once and for all (https://github.com/woocommerce/woocommerce-blocks/pull/6337) 2022-05-01 12:33:58 +01:00
codeql-analysis.yml Update GitHub actions/setup-node and add optionalDependencies handling (https://github.com/woocommerce/woocommerce-blocks/pull/6032) 2022-03-23 08:41:43 +01:00
js-css-md-linting.yml Format Markdown files using wp-scripts (https://github.com/woocommerce/woocommerce-blocks/pull/6462) 2022-06-09 14:43:17 +02:00
php-coding-standards.yml Update GitHub actions/setup-node and add optionalDependencies handling (https://github.com/woocommerce/woocommerce-blocks/pull/6032) 2022-03-23 08:41:43 +01:00
php-js-e2e-tests.yml Cache node_modules between workflows (https://github.com/woocommerce/woocommerce-blocks/pull/6404) 2022-05-24 12:42:54 +01:00
project-management-automations.yml Update GitHub actions/setup-node and add optionalDependencies handling (https://github.com/woocommerce/woocommerce-blocks/pull/6032) 2022-03-23 08:41:43 +01:00
release-pull-request.yml Update GitHub actions/setup-node and add optionalDependencies handling (https://github.com/woocommerce/woocommerce-blocks/pull/6032) 2022-03-23 08:41:43 +01:00
unit-tests.yml Add migration strategy and load blockified templates (https://github.com/woocommerce/woocommerce-blocks/pull/6538) 2022-07-06 09:51:39 +02:00
wordpress-deploy.yml Update GitHub actions/setup-node and add optionalDependencies handling (https://github.com/woocommerce/woocommerce-blocks/pull/6032) 2022-03-23 08:41:43 +01:00