-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from SzymonKostrubiec/op-366
OP-366 - Add Sylius 1.13 Support
- Loading branch information
Showing
108 changed files
with
648 additions
and
474 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 |
---|---|---|
|
@@ -14,23 +14,24 @@ on: | |
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-latest | ||
|
||
name: "Sylius ${{ matrix.sylius }}, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, MySQL ${{ matrix.mysql }}" | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: ["8.0"] | ||
php: [ "8.0", "8.1", "8.2", "8.3" ] | ||
symfony: ["^5.4", "^6.0"] | ||
sylius: ["~1.11.0", "~1.12.0"] | ||
node: ["14.x"] | ||
sylius: ["^1.12", "^1.13"] | ||
node: [ "18.x", "20.x" ] | ||
mysql: ["8.0"] | ||
|
||
exclude: | ||
- sylius: ~1.11.0 | ||
symfony: "^6.0" | ||
|
||
- sylius: ^1.13 | ||
php: 8.0 | ||
- sylius: ^1.12 | ||
php: 8.0 | ||
symfony: ^6.4 | ||
env: | ||
APP_ENV: test | ||
DATABASE_URL: "mysql://root:[email protected]/sylius?serverVersion=${{ matrix.mysql }}" | ||
|
@@ -126,11 +127,6 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-node-${{ matrix.node }}-yarn- | ||
- | ||
name: Copy package.json.dist to package.json | ||
if: matrix.sylius != '' | ||
run: (cd tests/Application && cp package.json.\${{ matrix.sylius }}.dist package.json) | ||
|
||
- | ||
name: Install JS dependencies | ||
run: (cd tests/Application && yarn install) | ||
|
@@ -165,7 +161,7 @@ jobs: | |
|
||
- | ||
name: Run PHPStan | ||
run: vendor/bin/phpstan analyse -c phpstan.neon -l 6 src/ | ||
run: vendor/bin/phpstan analyse -c phpstan.neon.dist -l 6 src/ | ||
|
||
- | ||
name: Run PHPSpec | ||
|
@@ -175,7 +171,9 @@ jobs: | |
name: Run PHPUnit | ||
run: vendor/bin/phpunit --colors=always | ||
|
||
# todo add behat test if necessary | ||
- | ||
name: Run ECS | ||
run: vendor/bin/ecs | ||
|
||
- | ||
name: Upload Behat logs | ||
|
@@ -185,7 +183,7 @@ jobs: | |
name: Behat logs | ||
path: etc/build/ | ||
if-no-files-found: ignore | ||
|
||
- name: Failed build Slack notification | ||
uses: rtCamp/action-slack-notify@v2 | ||
if: ${{ failure() && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') }} | ||
|
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 |
---|---|---|
@@ -1,16 +1,26 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
/* | ||
* This file was created by developers working at BitBag | ||
* Do you need more information about us and what we do? Visit our https://bitbag.io website! | ||
* We are hiring developers from all over the world. Join us and start your new, exciting adventure and become part of us: https://bitbag.io/career | ||
*/ | ||
|
||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | ||
use Symplify\EasyCodingStandard\ValueObject\Option; | ||
declare(strict_types=1); | ||
|
||
return static function (ContainerConfigurator $containerConfigurator): void { | ||
$containerConfigurator->import('vendor/bitbag/coding-standard/ecs.php'); | ||
use PhpCsFixer\Fixer\ClassNotation\VisibilityRequiredFixer; | ||
use Symplify\EasyCodingStandard\Config\ECSConfig; | ||
|
||
$parameters = $containerConfigurator->parameters(); | ||
$parameters->set(Option::PATHS, [ | ||
return static function (ECSConfig $ecsConfig): void { | ||
$ecsConfig->paths([ | ||
__DIR__ . '/src', | ||
__DIR__ . '/tests', | ||
__DIR__ . '/tests/Behat', | ||
__DIR__ . '/ecs.php', | ||
]); | ||
|
||
$ecsConfig->import('vendor/sylius-labs/coding-standard/ecs.php'); | ||
|
||
$ecsConfig->skip([ | ||
VisibilityRequiredFixer::class => ['*Spec.php'], | ||
]); | ||
}; |
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
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
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
Oops, something went wrong.