Skip to content

Commit 90cbc91

Browse files
committed
fix(setup): force paypal version to avoid error with 1.6
1 parent 56ded0b commit 90cbc91

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/recipe.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ jobs:
1919
matrix:
2020
php: ['7.4' ,'8.0', '8.1']
2121
sylius: ["~1.9.0", "~1.10.0", "~1.11.0", "~1.12.0"]
22+
include:
23+
- php: '8.1'
24+
sylius: '~1.12.0'
25+
sylius_paypal: '~1.5.0'
2226
exclude:
2327
- php: 8.1
2428
sylius: "~1.9.0"
@@ -76,6 +80,14 @@ jobs:
7680
run: |
7781
composer require --no-install --no-scripts --no-progress sylius/sylius="${{ matrix.sylius }}"
7882
83+
# Fix Paypal 1.5 on Sylius 1.12 and PHP 8.1
84+
- name: Make sure to install the required version of Sylius Paypal Plugin
85+
if: ${{ matrix.sylius_paypal }}
86+
working-directory: ./sylius
87+
run: |
88+
composer require --no-install --no-scripts --no-progress sylius/paypal-plugin="${{ matrix.sylius_paypal }}" # @see https://github.com/Sylius/PayPalPlugin/issues/295
89+
90+
7991
- name: Setup some requirements
8092
working-directory: ./sylius
8193
run: |

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
SHELL=/bin/bash
33
APP_DIR=tests/Application
44
SYLIUS_VERSION=1.12.0
5+
SYLIUS_PAYPAL_VERSION=1.5.0
56
SYMFONY=cd ${APP_DIR} && symfony
67
COMPOSER=symfony composer
78
CONSOLE=${SYMFONY} console
@@ -68,6 +69,7 @@ setup_application:
6869
(cd ${APP_DIR} && ${COMPOSER} config minimum-stability dev)
6970
(cd ${APP_DIR} && ${COMPOSER} config --no-plugins allow-plugins true)
7071
(cd ${APP_DIR} && ${COMPOSER} require --no-install --no-scripts --no-progress sylius/sylius="~${SYLIUS_VERSION}") # Make sure to install the required version of sylius because the sylius-standard has a soft constraint
72+
(cd ${APP_DIR} && ${COMPOSER} require --no-install --no-scripts --no-progress sylius/paypal-plugin="~${SYLIUS_PAYPAL_VERSION}") # @see https://github.com/Sylius/PayPalPlugin/issues/295
7173
@if [ ${SYLIUS_VERSION} == '1.11.0' ]; then\
7274
(cd ${APP_DIR} && ${COMPOSER} require --no-install --no-scripts --no-progress php-http/message-factory)\
7375
fi

0 commit comments

Comments
 (0)