-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #424 Update plugin to sylius 1.13. (BartoszWojdalowicz)
This PR was merged into the 1.5 branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | 1.5 (new features) | Bug fix? | no/ | New feature? | no | Related tickets | - Commits ------- Sylius 1.13 - Update composer.json Sylius 1.13 - Add workflow configuration Sylius 1.13 - Remove deprecation Sylius 1.13 - Update gh actions config Sylius 1.13 - Update bundles.php in test application Sylius 1.13 - Update bundles.php in test application Sylius 1.13 - add workflow configuration only in 1.13, add workflow to the gh actions Sylius 1.13 - add mailer configuration to the 1.13 version Sylius 1.13 - add mailer configuration in the global config of test app Sylius 1.13 - adapt state machine configuration per version Sylius 1.13 - fix composer.json problem Sylius 1.13 - try to fix problem with not existing service Sylius 1.13 - unlock sylius 13 version in gh actions Sylius 1.13 - fix behats scenarios Sylius 1.13 - Add info about state machine adapter in gh actions Sylius 1.13 - Add missing info about symfony workflow in readme Sylius 1.13 - Fix duplicated configuration key [Maintenance] Slight fixes of 1.13 support [Maintenance] Update builds
- Loading branch information
Showing
23 changed files
with
111 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,45 +18,54 @@ jobs: | |
tests: | ||
runs-on: ubuntu-latest | ||
|
||
name: "Sylius ${{ matrix.sylius }}, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, MySQL ${{ matrix.mysql }}, wkhtmltopdf: ${{ matrix.wkhtmltopdf }}" | ||
name: "Sylius ${{ matrix.sylius }}, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, MySQL ${{ matrix.mysql }}, wkhtmltopdf: ${{ matrix.wkhtmltopdf }}, State Machine Adapter ${{ matrix.state_machine_adapter }}" | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: ["8.0", "8.1"] | ||
symfony: ["^5.4", "^6.0"] | ||
sylius: ["~1.11.4", "~1.12.0"] | ||
node: ["16.x"] | ||
mysql: ["5.7", "8.0"] | ||
php: ["8.1", "8.2"] | ||
symfony: ["^5.4.21", "^6.4"] | ||
sylius: ["~1.12.0", "~1.13.x-dev",] | ||
node: ["20.x"] | ||
mysql: ["8.0"] | ||
wkhtmltopdf: ["0.12.6-1"] | ||
state_machine_adapter: [ "winzou_state_machine", "symfony_workflow" ] | ||
|
||
include: | ||
- | ||
php: "8.1" | ||
symfony: "^6.0" | ||
php: "8.3" | ||
symfony: "^6.4" | ||
sylius: "~1.13.x-dev" | ||
node: "20.x" | ||
mysql: "8.0" | ||
wkhtmltopdf: "0.12.6-1" | ||
state_machine_adapter: "symfony_workflow" | ||
- | ||
php: "8.2" | ||
symfony: "^6.4" | ||
sylius: "~1.12.0" | ||
node: "16.x" | ||
node: "20.x" | ||
mysql: "8.0" | ||
wkhtmltopdf: false | ||
state_machine_adapter: "winzou_state_machine" | ||
- | ||
php: "8.1" | ||
symfony: "^5.4" | ||
sylius: "~1.11.2" | ||
node: "14.x" | ||
php: "8.2" | ||
symfony: "^6.4" | ||
sylius: "~1.13.x-dev" | ||
node: "20.x" | ||
mysql: "8.0" | ||
wkhtmltopdf: false | ||
state_machine_adapter: "symfony_workflow" | ||
|
||
exclude: | ||
- | ||
php: "8.0" | ||
symfony: "^6.0" | ||
- | ||
symfony: "^6.0" | ||
sylius: "~1.11.4" | ||
sylius: "~1.12.0" | ||
state_machine_adapter: "symfony_workflow" | ||
|
||
env: | ||
APP_ENV: test | ||
DATABASE_URL: "mysql://root:[email protected]/sylius?serverVersion=${{ matrix.mysql }}" | ||
TEST_SYLIUS_STATE_MACHINE_ADAPTER: "${{ matrix.state_machine_adapter }}" | ||
|
||
steps: | ||
- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ Feature: Filtering credit memos | |
And the store has a zone "United States + United Kingdom" with code "US + UK" | ||
And this zone has the "United States" country member | ||
And this zone has the "United Kingdom" country member | ||
And the store has a product "Mr. Meeseeks T-Shirt" priced at "$10" available in channel "Web-US" and channel "Web-UK" | ||
And the store has a product "Mr. Meeseeks T-Shirt" priced at "$10.00" available in channel "Web-US" and channel "Web-UK" | ||
And the store ships everywhere for free for all channels | ||
And the store allows paying offline for all channels | ||
And there is a customer "[email protected]" that placed an order "#00000001" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ Feature: Refunding a single order unit with promotion applied | |
And the store allows shipping with "Galaxy Post" | ||
And the store allows paying with "Space money" | ||
And there is a promotion "Anatomy Park Promotion" | ||
And this promotion gives "$1" off on every product with minimum price at "$5.00" | ||
And this promotion gives "$1.00" off on every product with minimum price at "$5.00" | ||
And there is a customer "[email protected]" that placed an order "#00000022" | ||
And the customer bought 2 "Mr. Meeseeks T-Shirt" products | ||
And the customer chose "Galaxy Post" shipping method to "United States" with "Space money" payment | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Symfony\Component\DependencyInjection\ContainerBuilder; | ||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | ||
|
||
return static function (ContainerConfigurator $configurator, ContainerBuilder $container): void { | ||
if (class_exists('\Symfony\Component\Workflow\Workflow')) { | ||
$configurator->import('../integrations/workflow.yaml'); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
framework: | ||
workflows: | ||
sylius_refund_refund_payment: | ||
type: state_machine | ||
marking_store: | ||
type: method | ||
property: state | ||
supports: | ||
- Sylius\RefundPlugin\Entity\RefundPayment | ||
initial_marking: new | ||
places: | ||
- !php/const Sylius\RefundPlugin\Entity\RefundPaymentInterface::STATE_NEW | ||
- !php/const Sylius\RefundPlugin\Entity\RefundPaymentInterface::STATE_COMPLETED | ||
transitions: | ||
complete: | ||
from: !php/const Sylius\RefundPlugin\Entity\RefundPaymentInterface::STATE_NEW | ||
to: !php/const Sylius\RefundPlugin\Entity\RefundPaymentInterface::STATE_COMPLETED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
...fig/sylius/1.12/packages/test/mailer.yaml → ...lication/config/packages/test/mailer.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
framework: | ||
mailer: | ||
dsn: 'null://null' | ||
cache: | ||
pools: | ||
test.mailer_pool: | ||
|
File renamed without changes.
2 changes: 0 additions & 2 deletions
2
tests/Application/config/sylius/1.11/packages/dev/swiftmailer.yaml
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
tests/Application/config/sylius/1.11/packages/staging/swiftmailer.yaml
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
tests/Application/config/sylius/1.11/packages/swiftmailer.yaml
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
tests/Application/config/sylius/1.11/packages/test/swiftmailer.yaml
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
tests/Application/config/sylius/1.11/packages/test_cached/swiftmailer.yaml
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.