Skip to content

Commit

Permalink
Add Sylius 2.0 requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
Prometee committed Dec 19, 2024
1 parent d09ad89 commit ac41842
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 57 deletions.
46 changes: 7 additions & 39 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ 8.0 ]
symfony: [ ^5.4, ^6.0 ]
php: [ 8.2 ]
symfony: [ ^6.4, ^7.1 ]

steps:
-
Expand Down Expand Up @@ -108,43 +108,11 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [7.3, 7.4, 8.0]
symfony: [^5.4, ^6.0]
sylius: [~1.9.0, ~1.10.0, ~1.11.0, ~1.12.0]
node: [18.x]
mysql: [5.7]

exclude:
-
sylius: ~1.9.0
php: 8.0
-
sylius: ~1.10.0
php: 7.3
-
sylius: ~1.10.0
symfony: ^6.0
-
sylius: ~1.11.0
php: 7.3
-
sylius: ~1.11.0
php: 7.4
-
sylius: ~1.11.0
symfony: ^6.0
-
sylius: ~1.12.0
php: 7.3
-
sylius: ~1.12.0
php: 7.4
-
php: 7.3
symfony: ^6.0
-
php: 7.4
symfony: ^6.0
php: [8.2, 8.3]
symfony: [^6.4, ^7.1]
sylius: [~2.0.0]
node: [20.x]
mysql: [8]

env:
APP_ENV: test
Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}
],
"require": {
"sylius/sylius": "^1.4",
"sylius/sylius": "^2.0",
"meteo-concept/hcaptcha-bundle": ">=2"
},
"require-dev": {
Expand All @@ -35,13 +35,13 @@
"polishsymfonycommunity/symfony-mocker-container": "^1.0",
"robertfausk/behat-panther-extension": "^1.1",
"sylius-labs/coding-standard": "^4.0",
"symfony/browser-kit": "^5.4|^6.0",
"symfony/debug-bundle": "^5.4|^6.0",
"symfony/dotenv": "^5.4|^6.0",
"symfony/http-client": "^5.4|^6.0",
"symfony/intl": "^5.4|^6.0",
"symfony/runtime": "^5.4|^6.0",
"symfony/web-profiler-bundle": "^5.4|^6.0",
"symfony/browser-kit": "^6.4 || ^7.1",
"symfony/debug-bundle": "^6.4 || ^7.1",
"symfony/dotenv": "^6.4 || ^7.1",
"symfony/http-client": "^6.4 || ^7.1",
"symfony/intl": "^6.4 || ^7.1",
"symfony/runtime": "^6.4 || ^7.1",
"symfony/web-profiler-bundle": "^6.4 || ^7.1",
"symfony/webpack-encore-bundle": "^1.16",
"vimeo/psalm": "^4|^5",
"dbrekelmans/bdi": "^1.0"
Expand Down
16 changes: 6 additions & 10 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@
use PhpCsFixer\Fixer\ControlStructure\TrailingCommaInMultilineFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;

return static function (ECSConfig $ecsConfig): void {
$ecsConfig->import(__DIR__ . '/vendor/sylius-labs/coding-standard/ecs.php');

$services = $ecsConfig->services();

// PHP 7 compatibility
$services
->set(TrailingCommaInMultilineFixer::class)
->call('configure', [['elements' => ['arrays']]])
;
return static function (ECSConfig $config): void {
$config->import('vendor/sylius-labs/coding-standard/ecs.php');
$config->paths([
'src',
'tests',
]);
};

0 comments on commit ac41842

Please sign in to comment.