-
Notifications
You must be signed in to change notification settings - Fork 17
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 #49 from BitBagCommerce/feature/OP-376-add-sylius-…
…1.13-support Feature/op 376 add sylius 1.13 support
- Loading branch information
Showing
108 changed files
with
779 additions
and
871 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,37 +14,29 @@ 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] | ||
symfony: [^5.4, ^6.0] | ||
sylius: [~1.11.0, ~1.12.0] | ||
node: [14.19] | ||
mysql: [5.7, 8.0] | ||
|
||
php: ["8.0", "8.1", "8.2", "8.3"] | ||
symfony: ["^5.4", "^6.0"] | ||
sylius: ["~1.12.0", "~1.13.0"] | ||
node: ["20.x"] | ||
mysql: ["8.0"] | ||
exclude: | ||
- | ||
sylius: ~1.11.0 | ||
symfony: ^6.0 | ||
- | ||
sylius: ~1.11.0 | ||
php: 7.3 | ||
- | ||
sylius: ~1.11.0 | ||
php: 7.4 | ||
- sylius: "~1.13.0" | ||
php: "8.0" | ||
|
||
env: | ||
APP_ENV: test | ||
DATABASE_URL: "mysql://root:[email protected]/sylius?serverVersion=${{ matrix.mysql }}" | ||
|
||
steps: | ||
- | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
|
||
- | ||
name: Setup PHP | ||
|
@@ -57,7 +49,7 @@ jobs: | |
|
||
- | ||
name: Setup Node | ||
uses: actions/setup-node@v1 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "${{ matrix.node }}" | ||
|
||
|
@@ -95,7 +87,7 @@ jobs: | |
|
||
- | ||
name: Cache Composer | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json **/composer.lock') }} | ||
|
@@ -120,7 +112,7 @@ jobs: | |
- | ||
name: Get Yarn cache directory | ||
id: yarn-cache | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT | ||
|
||
- | ||
name: Cache Yarn | ||
|
@@ -160,6 +152,10 @@ jobs: | |
name: Validate database schema | ||
run: (cd tests/Application && bin/console doctrine:schema:validate) | ||
|
||
- | ||
name: Run ECS | ||
run: vendor/bin/ecs check src | ||
|
||
- | ||
name: Run PHPStan | ||
if: matrix.php != 8.0 | ||
|
@@ -169,21 +165,20 @@ jobs: | |
name: Run PHPSpec | ||
run: vendor/bin/phpspec run --ansi -f progress --no-interaction | ||
|
||
|
||
- | ||
name: Run Behat | ||
run: vendor/bin/behat --colors --strict -vvv --no-interaction || vendor/bin/behat --colors --strict -vvv --no-interaction --rerun | ||
|
||
- | ||
name: Upload Behat logs | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
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
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,7 +1,12 @@ | ||
<?php | ||
|
||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; | ||
declare(strict_types=1); | ||
|
||
return static function (ContainerConfigurator $containerConfigurator): void { | ||
$containerConfigurator->import('vendor/sylius-labs/coding-standard/ecs.php'); | ||
use Symplify\EasyCodingStandard\Config\ECSConfig; | ||
|
||
return static function (ECSConfig $config): void { | ||
putenv('ALLOW_BITBAG_OS_HEADER=1'); | ||
|
||
$config->import('vendor/bitbag/coding-standard/ecs.php'); | ||
$config->paths(['src', 'tests']); | ||
}; |
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ Feature: Collecting bonus points | |
And the store allows paying "Offline" | ||
And there is bonus points strategy with code "bitbag-bonus-points-strategy" and name "BitBag Bonus Points Strategy" with rule "Has Taxon" with "Watches" taxon | ||
And the bonus points strategy "bitbag-bonus-points-strategy" admits "2" points per one currency | ||
And the store has a product "BitBag Watch" priced at "$2000.32" | ||
And the store has a product "BitBag Watch" priced at "$2,000.32" | ||
And this product belongs to "Watches" | ||
And there is a customer "Francis Underwood" identified by an email "[email protected]" and a password "whitehouse" | ||
And there is a customer "[email protected]" that placed an order "#00000022" | ||
|
@@ -42,4 +42,4 @@ Feature: Collecting bonus points | |
@ui @javascript | ||
Scenario: Unsuccessfully using of awarded bonus points with "per order price" calculator | ||
When I want to use "0.32" bonus points | ||
Then I should be notified that this value should be natural number, greater than or equal to 1 | ||
Then I should be notified that this value should be natural number, greater than or equal to 1 |
Oops, something went wrong.