mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-05 20:57:12 +00:00
feat(php-grids): Tests with Legacy grid config (#19091)
Some checks are pending
Continuous Integration (Minimal) / Static checks (push) Waiting to run
Continuous Integration (Minimal) / Tests (MariaDB) (push) Blocked by required conditions
Continuous Integration (Minimal) / Tests (MySQL) (push) Blocked by required conditions
Continuous Integration (Minimal) / Javascript Tests (MySQL) (push) Blocked by required conditions
Continuous Integration (Minimal) / Tests (PostgreSQL) (push) Blocked by required conditions
Continuous Integration (Minimal) / Frontend (push) Blocked by required conditions
Continuous Integration (Minimal) / Packages (push) Blocked by required conditions
Some checks are pending
Continuous Integration (Minimal) / Static checks (push) Waiting to run
Continuous Integration (Minimal) / Tests (MariaDB) (push) Blocked by required conditions
Continuous Integration (Minimal) / Tests (MySQL) (push) Blocked by required conditions
Continuous Integration (Minimal) / Javascript Tests (MySQL) (push) Blocked by required conditions
Continuous Integration (Minimal) / Tests (PostgreSQL) (push) Blocked by required conditions
Continuous Integration (Minimal) / Frontend (push) Blocked by required conditions
Continuous Integration (Minimal) / Packages (push) Blocked by required conditions
| Q | A |-----------------|----- | Branch? | php-grid-configuration | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no <!-- don't forget to update the UPGRADE-*.md file --> | Related tickets | | License | MIT <!-- - Bug fixes must be submitted against the 2.2 branch - Features and deprecations must be submitted against the 2.3 branch - Make sure that the correct base branch is set To be sure you are not breaking any Backward Compatibilities, check the documentation: https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html -->
This commit is contained in:
commit
459af9d526
4 changed files with 16 additions and 75 deletions
1
.env
1
.env
|
|
@ -46,3 +46,4 @@ MAILER_DSN=null://null
|
|||
###< symfony/mailer ###
|
||||
|
||||
SYLIUS_PAYMENT_ENCRYPTION_KEY_PATH=%kernel.project_dir%/config/encryption/dev.key
|
||||
TEST_SYLIUS_USE_LEGACY_GRID_CONFIG=0
|
||||
|
|
|
|||
6
.github/workflows/ci_e2e-mariadb.yaml
vendored
6
.github/workflows/ci_e2e-mariadb.yaml
vendored
|
|
@ -44,7 +44,7 @@ jobs:
|
|||
phpunit-cli-api:
|
||||
needs: get-matrix
|
||||
runs-on: ubuntu-latest
|
||||
name: "PHPUnit, CLI, API, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, MariaDB ${{ matrix.mariadb }}, State Machine Adapter ${{ matrix.state_machine_adapter }}${{ matrix.doctrine_bundle && format(', DoctrineBundle {0}', matrix.doctrine_bundle) || '' }}${{ matrix.api_platform && format(', ApiPlatform {0}', matrix.api_platform) || '' }}"
|
||||
name: "PHPUnit, CLI, API, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, MariaDB ${{ matrix.mariadb }}, State Machine Adapter ${{ matrix.state_machine_adapter }}${{ matrix.doctrine_bundle && format(', DoctrineBundle {0}', matrix.doctrine_bundle) || '' }}${{ matrix.api_platform && format(', ApiPlatform {0}', matrix.api_platform) || '' }}${{ matrix.legacy_grid_config && format(', LegacyGridConfig {0}', matrix.legacy_grid_config) || '' }"
|
||||
timeout-minutes: 20
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
|
@ -53,6 +53,7 @@ jobs:
|
|||
env:
|
||||
APP_ENV: test_cached
|
||||
TEST_SYLIUS_STATE_MACHINE_ADAPTER: "${{ matrix.state_machine_adapter }}"
|
||||
TEST_SYLIUS_USE_LEGACY_GRID_CONFIG: ${{ matrix.legacy_grid_config || true }}
|
||||
BEHAT_BASE_CMD: "vendor/bin/behat --colors --strict --no-interaction -vvv -f progress"
|
||||
BEHAT_RERUN_CMD: "vendor/bin/behat --colors --strict --no-interaction -vvv -f pretty --rerun"
|
||||
|
||||
|
|
@ -153,7 +154,7 @@ jobs:
|
|||
behat-ui:
|
||||
needs: get-matrix
|
||||
runs-on: ubuntu-latest
|
||||
name: "UI, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, MariaDB ${{ matrix.mariadb }}, State Machine Adapter ${{ matrix.state_machine_adapter }}${{ matrix.doctrine_bundle && format(', DoctrineBundle {0}', matrix.doctrine_bundle) || '' }}${{ matrix.api_platform && format(', ApiPlatform {0}', matrix.api_platform) || '' }}"
|
||||
name: "UI, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, MariaDB ${{ matrix.mariadb }}, State Machine Adapter ${{ matrix.state_machine_adapter }}${{ matrix.doctrine_bundle && format(', DoctrineBundle {0}', matrix.doctrine_bundle) || '' }}${{ matrix.api_platform && format(', ApiPlatform {0}', matrix.api_platform) || '' }}${{ matrix.legacy_grid_config && format(', LegacyGridConfig {0}', matrix.legacy_grid_config) || '' }}"
|
||||
timeout-minutes: 20
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
|
@ -162,6 +163,7 @@ jobs:
|
|||
env:
|
||||
APP_ENV: test_cached
|
||||
TEST_SYLIUS_STATE_MACHINE_ADAPTER: "${{ matrix.state_machine_adapter }}"
|
||||
TEST_SYLIUS_USE_LEGACY_GRID_CONFIG: ${{ matrix.legacy_grid_config || true }}
|
||||
BEHAT_BASE_CMD: "vendor/bin/behat --colors --strict --no-interaction -vvv -f progress"
|
||||
BEHAT_RERUN_CMD: "vendor/bin/behat --colors --strict --no-interaction -vvv -f pretty --rerun"
|
||||
|
||||
|
|
|
|||
12
.github/workflows/matrix.json
vendored
12
.github/workflows/matrix.json
vendored
|
|
@ -23,14 +23,16 @@
|
|||
"symfony": "~6.4.0",
|
||||
"mariadb": "10.11.13",
|
||||
"doctrine_bundle": "^2.0",
|
||||
"state_machine_adapter": "winzou_state_machine"
|
||||
"state_machine_adapter": "winzou_state_machine",
|
||||
"legacy_grid_config": true
|
||||
},
|
||||
{
|
||||
"php": "8.5",
|
||||
"symfony": "~7.4.0",
|
||||
"mariadb": "11.4.7",
|
||||
"doctrine_bundle": "^3.0",
|
||||
"state_machine_adapter": "symfony_workflow"
|
||||
"state_machine_adapter": "symfony_workflow",
|
||||
"legacy_grid_config": false
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -166,13 +168,17 @@
|
|||
"state_machine_adapter": [
|
||||
"symfony_workflow"
|
||||
],
|
||||
"legacy_grid_config": [
|
||||
false
|
||||
],
|
||||
"include": [
|
||||
{
|
||||
"php": "8.3",
|
||||
"symfony": "~7.4.0",
|
||||
"mariadb": "11.4.7",
|
||||
"doctrine_bundle": "^2.0",
|
||||
"state_machine_adapter": "winzou_state_machine"
|
||||
"state_machine_adapter": "winzou_state_machine",
|
||||
"legacy_grid_config": true
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
|||
|
|
@ -8,80 +8,12 @@ imports:
|
|||
|
||||
parameters:
|
||||
sylius_core.public_dir: '%kernel.project_dir%/public'
|
||||
sylius_core.grids_configuration:
|
||||
use_legacy_config: '%env(bool:TEST_SYLIUS_USE_LEGACY_GRID_CONFIG)%'
|
||||
|
||||
sylius_api:
|
||||
enabled: true
|
||||
|
||||
sylius_core:
|
||||
grid:
|
||||
grids:
|
||||
sylius_admin_admin_user:
|
||||
use_legacy_config: false
|
||||
sylius_admin_catalog_promotion:
|
||||
use_legacy_config: false
|
||||
sylius_admin_channel:
|
||||
use_legacy_config: false
|
||||
sylius_admin_channel_pricing_log_entry:
|
||||
use_legacy_config: false
|
||||
sylius_admin_country:
|
||||
use_legacy_config: false
|
||||
sylius_admin_currency:
|
||||
use_legacy_config: false
|
||||
sylius_admin_customer:
|
||||
use_legacy_config: false
|
||||
sylius_admin_customer_group:
|
||||
use_legacy_config: false
|
||||
sylius_admin_customer_order:
|
||||
use_legacy_config: false
|
||||
sylius_admin_exchange_rate:
|
||||
use_legacy_config: false
|
||||
sylius_admin_inventory:
|
||||
use_legacy_config: false
|
||||
sylius_admin_locale:
|
||||
use_legacy_config: false
|
||||
sylius_admin_order:
|
||||
use_legacy_config: false
|
||||
sylius_admin_payment:
|
||||
use_legacy_config: false
|
||||
sylius_admin_payment_method:
|
||||
use_legacy_config: false
|
||||
sylius_admin_payment_request:
|
||||
use_legacy_config: false
|
||||
sylius_admin_product_association_type:
|
||||
use_legacy_config: false
|
||||
sylius_admin_product_attribute:
|
||||
use_legacy_config: false
|
||||
sylius_admin_product:
|
||||
use_legacy_config: false
|
||||
sylius_admin_product_option:
|
||||
use_legacy_config: false
|
||||
sylius_admin_product_review:
|
||||
use_legacy_config: false
|
||||
sylius_admin_product_taxon:
|
||||
use_legacy_config: false
|
||||
sylius_admin_product_variant:
|
||||
use_legacy_config: false
|
||||
sylius_admin_product_variant_with_catalog_promotion:
|
||||
use_legacy_config: false
|
||||
sylius_admin_promotion:
|
||||
use_legacy_config: false
|
||||
sylius_admin_promotion_coupon:
|
||||
use_legacy_config: false
|
||||
sylius_admin_shipment:
|
||||
use_legacy_config: false
|
||||
sylius_admin_shipping_category:
|
||||
use_legacy_config: false
|
||||
sylius_admin_shipping_method:
|
||||
use_legacy_config: false
|
||||
sylius_admin_tax_category:
|
||||
use_legacy_config: false
|
||||
sylius_admin_tax_rate:
|
||||
use_legacy_config: false
|
||||
sylius_admin_taxon:
|
||||
use_legacy_config: false
|
||||
sylius_admin_zone:
|
||||
use_legacy_config: false
|
||||
|
||||
sylius_shop:
|
||||
product_grid:
|
||||
include_all_descendants: true
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue