Skip to content

Commit 334cde4

Browse files
committed
feat: downgrade react/promise for roave-backward-compatibility-check before running PHPUNIT
1 parent 57e97a6 commit 334cde4

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,23 @@ jobs:
2121
- name: Checkout
2222
uses: actions/checkout@v3
2323

24-
- name: Test
24+
- name: Prepare
2525
run: |
2626
start-mysql
2727
mysql -V
2828
php -v
2929
cp -r "./" "/plugins/FroshPlatformThumbnailProcessor"
3030
cd /plugins/FroshPlatformThumbnailProcessor
3131
composer update -d /opt/shopware
32+
33+
- name: Install specific dependencies for v6.5.0
34+
if: matrix.version == 'v6.5.0'
35+
run: |
36+
composer require react/promise:~2 -d /opt/shopware/vendor-bin/roave-backward-compatibility-check
37+
composer require tomasvotruba/type-coverage --dev --no-scripts -d /opt/shopware/
38+
39+
- name: PHPUnit
40+
run: |
3241
php -d pcov.enabled=1 /opt/shopware/vendor/bin/phpunit --coverage-clover clover.xml
3342
3443
- uses: codecov/codecov-action@v3
@@ -39,13 +48,6 @@ jobs:
3948
root_dir: /plugins/FroshPlatformThumbnailProcessor
4049
working-directory: /plugins/FroshPlatformThumbnailProcessor
4150

42-
- name: Install dependencies for PHPStan
43-
if: matrix.version == 'v6.5.0'
44-
run: |
45-
cd /opt/shopware/
46-
composer require react/promise:~2 -d /opt/shopware/vendor-bin/roave-backward-compatibility-check
47-
composer require tomasvotruba/type-coverage --dev --no-scripts
48-
4951
- name: PHPStan
5052
run: |
5153
cd /plugins/FroshPlatformThumbnailProcessor

0 commit comments

Comments
 (0)