From 9f4b386356d5e4c9486bf7f8215812bfe579a8fb Mon Sep 17 00:00:00 2001 From: liszkapawel <88146754+liszkapawel@users.noreply.github.com> Date: Wed, 27 Apr 2022 11:49:14 +0200 Subject: [PATCH] Github actions fix (#427) * Fix composer dependencies * Fix phpstan memory leak * Update behat configuration * Set socket_timeout in chrome headless in file behat.yml.dist * Enable sylius_api for the sylius 1.9 in _sylius.yaml --- behat.yml.dist | 19 +++++++++++++++++++ composer.json | 4 ++-- phpstan.neon | 3 ++- .../config/sylius/1.9/packages/_sylius.yaml | 2 ++ 4 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 tests/Application/config/sylius/1.9/packages/_sylius.yaml diff --git a/behat.yml.dist b/behat.yml.dist index 7c363b8c1..6c02a541e 100755 --- a/behat.yml.dist +++ b/behat.yml.dist @@ -23,6 +23,25 @@ default: chrome: api_url: http://127.0.0.1:9222 validate_certificate: false + socket_timeout: 60 + chrome: + selenium2: + browser: chrome + capabilities: + browserName: chrome + browser: chrome + version: "" + marionette: null # https://github.com/Behat/MinkExtension/pull/311 + chrome: + switches: + - "start-fullscreen" + - "start-maximized" + - "no-sandbox" + extra_capabilities: + unexpectedAlertBehaviour: accept + firefox: + selenium2: + browser: firefox show_auto: false FriendsOfBehat\SymfonyExtension: diff --git a/composer.json b/composer.json index 55e1507c1..40a4c7edf 100755 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "require-dev": { "behat/behat": "^3.7", "behat/mink-selenium2-driver": "^1.4", - "bitbag/coding-standard": "dev-main", + "bitbag/coding-standard": "^1.0", "dmore/behat-chrome-extension": "^1.3", "dmore/chrome-mink-driver": "^2.7", "friends-of-behat/mink": "^1.8", @@ -34,7 +34,7 @@ "friendsofsymfony/oauth-server-bundle": "^1.6 || >2.0.0-alpha.0 ^2.0@dev", "phpspec/phpspec": "^7.0", "phpstan/extension-installer": "^1.0", - "phpstan/phpstan": "0.12.82", + "phpstan/phpstan": "0.12.99", "phpstan/phpstan-doctrine": "0.12.33", "phpstan/phpstan-strict-rules": "^0.12.0", "phpstan/phpstan-webmozart-assert": "0.12.12", diff --git a/phpstan.neon b/phpstan.neon index df39c91f3..209d86ad9 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -10,6 +10,7 @@ parameters: - 'src/Importer/AbstractImporter' - 'tests/Application/config/bootstrap.php' - 'tests/Fixture/PageFixtureTest.php' + - 'src/Controller/Helper' ignoreErrors: - '#.*NodeParentInterface.*#' - - '#.*PHPDoc tag @throws with type Exception|Psr\Container\ContainerExceptionInterface is not subtype of Throwable.*#' \ No newline at end of file + - '#.*PHPDoc tag @throws with type Exception|Psr\Container\ContainerExceptionInterface is not subtype of Throwable.*#' diff --git a/tests/Application/config/sylius/1.9/packages/_sylius.yaml b/tests/Application/config/sylius/1.9/packages/_sylius.yaml new file mode 100644 index 000000000..cd01aaf70 --- /dev/null +++ b/tests/Application/config/sylius/1.9/packages/_sylius.yaml @@ -0,0 +1,2 @@ +sylius_api: + enabled: true