Skip to content

Commit 178a5ef

Browse files
authored
Fix api-plarform/state not installing in latest version (#1149)
Fixes: ``` Invalid service "api_platform.state_provider.parameter.iri_converter": class "ApiPlatform\State\ParameterProvider\IriConverterParameterProvider" does not e xist. ```
2 parents b079095 + 4e8e97e commit 178a5ef

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
lines changed

.github/workflows/ci_e2e-mysql.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
echo "{}" > public/build/app/shop/manifest.json
7878
7979
- name: Build application
80-
uses: SyliusLabs/BuildTestAppAction@v2.3
80+
uses: SyliusLabs/BuildTestAppAction@v2.4
8181
with:
8282
build_type: "sylius"
8383
cache_key: "${{ github.run_id }}-${{ runner.os }}-${{ hashFiles('composer.json') }}-symfony-${{ matrix.symfony }}"
@@ -89,6 +89,7 @@ jobs:
8989
php_version: ${{ matrix.php }}
9090
symfony_version: ${{ matrix.symfony }}
9191
node_version: "20.x"
92+
chrome_version: '137'
9293

9394
- name: Fix permissions for Symfony logs directory
9495
run: |
@@ -162,7 +163,7 @@ jobs:
162163
run: composer require --no-update --no-scripts --no-interaction "twig/twig:${{ matrix.twig }}"
163164

164165
- name: Build application
165-
uses: SyliusLabs/BuildTestAppAction@v2.3
166+
uses: SyliusLabs/BuildTestAppAction@v2.4
166167
with:
167168
build_type: "sylius"
168169
cache_key: "${{ github.run_id }}-${{ runner.os }}-${{ hashFiles('composer.json') }}-symfony-${{ matrix.symfony }}"
@@ -174,6 +175,7 @@ jobs:
174175
php_version: ${{ matrix.php }}
175176
symfony_version: ${{ matrix.symfony }}
176177
node_version: "20.x"
178+
chrome_version: '137'
177179

178180
- name: Run Behat (Chromedriver)
179181
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="@mink:chromedriver&&~@todo&&~@cli" --suite-tags="@hybrid,@ui" || vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="@mink:chromedriver&&~@todo&&~@cli" --suite-tags="@hybrid,@ui" --rerun || vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="@mink:chromedriver&&~@todo&&~@cli" --suite-tags="@hybrid,@ui" --rerun
@@ -229,7 +231,7 @@ jobs:
229231
run: composer require --no-update --no-scripts --no-interaction "twig/twig:${{ matrix.twig }}"
230232

231233
- name: Build application
232-
uses: SyliusLabs/BuildTestAppAction@v2.3
234+
uses: SyliusLabs/BuildTestAppAction@v2.4
233235
with:
234236
build_type: "sylius"
235237
cache_key: "${{ github.run_id }}-${{ runner.os }}-${{ hashFiles('composer.json') }}-symfony-${{ matrix.symfony }}"
@@ -241,9 +243,7 @@ jobs:
241243
php_version: ${{ matrix.php }}
242244
symfony_version: ${{ matrix.symfony }}
243245
node_version: "20.x"
244-
245-
- name: Install Behat driver
246-
run: vendor/bin/bdi detect drivers
246+
chrome_version: '137'
247247

248248
- name: Run Behat (Panther)
249249
run: vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="@javascript&&~@todo&&~@cli" --suite-tags="@hybrid,@ui" || vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="@javascript&&~@todo&&~@cli" --suite-tags="@hybrid,@ui" --rerun || vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="@javascript&&~@todo&&~@cli" --suite-tags="@hybrid,@ui" --rerun

behat.yml.dist

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,23 @@ default:
4545
acceptSslCerts: true
4646
acceptInsecureCerts: true
4747
unexpectedAlertBehaviour: accept
48+
options:
49+
browser_arguments:
50+
- --window-size=1200,1000
51+
- --headless
52+
- --no-sandbox
53+
- --disable-dev-shm-usage
54+
- --disable-gpu
55+
- --disable-infobars
56+
- --disable-features=TranslateUI
57+
- --disable-translate
58+
- --disable-popup-blocking
59+
- --disable-blink-features=AutomationControlled
60+
- --disable-component-extensions-with-background-pages
61+
- --disable-background-networking
62+
- --disable-dev-tools
63+
- --disable-extensions
64+
- --disable-password-manager-leak-detection
4865
show_auto: false
4966

5067
FriendsOfBehat\SymfonyExtension: ~

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"sylius-labs/suite-tags-extension": "~0.2",
5959
"sylius/sylius-rector": "^3.0",
6060
"symfony/browser-kit": "^6.4 || ^7.2",
61+
"symfony/contracts": "^3.6",
6162
"symfony/debug-bundle": "^6.4 || ^7.2",
6263
"symfony/http-client": "^6.4 || ^7.2",
6364
"symfony/intl": "^6.4 || ^7.2",

0 commit comments

Comments
 (0)