diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 246e229b..10372ab6 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -17,13 +17,13 @@ jobs:
runs-on: ubuntu-latest
name: "Sylius ${{ matrix.sylius }}, PHP ${{ matrix.php }}, Symfony ${{ matrix.symfony }}, MySQL ${{ matrix.mysql }}"
-
+
strategy:
fail-fast: false
matrix:
php: [7.4, 7.3]
symfony: [^4.4, ^5.2]
- sylius: [~1.8.0, ~1.9.0]
+ sylius: [~1.8.0, ~1.9.0, ~1.10.0]
node: [10.x]
mysql: [5.7]
@@ -31,6 +31,9 @@ jobs:
-
sylius: ~1.8.0
symfony: ^5.2
+ -
+ sylius: ~1.10.0
+ php: 7.3
env:
APP_ENV: test
@@ -108,6 +111,11 @@ jobs:
if: matrix.sylius != ''
run: composer require "sylius/sylius:${{ matrix.sylius }}" --no-update --no-scripts --no-interaction
+ -
+ name: Add Admin API Bundle for Sylius >= 1.10
+ if: matrix.sylius != '~1.8.0' && matrix.sylius != '~1.9.0'
+ run: composer require sylius/admin-api-bundle --no-update --no-scripts --no-interaction
+
-
name: Install PHP dependencies
run: composer install --no-interaction
diff --git a/composer.json b/composer.json
index 66c08a79..5e2485aa 100644
--- a/composer.json
+++ b/composer.json
@@ -5,7 +5,7 @@
"license": "MIT",
"require": {
"php": "^7.3",
- "sylius/sylius": "~1.8.0 || ~1.9.0",
+ "sylius/sylius": "~1.8.0 || ~1.9.0 || ~1.10.0",
"portphp/portphp": "^1.2",
"symfony/stopwatch": "^4.4 || ^5.2",
"queue-interop/queue-interop": "^0.6.2 || ^0.7 || ^0.8"
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index 8e4bfdb0..8a4d754a 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -9,11 +9,11 @@
tests
-
-
+
+