diff --git a/.docker/test/php.ini b/.docker/test/php.ini index fc9aee6bc0c..23b350c649a 100644 --- a/.docker/test/php.ini +++ b/.docker/test/php.ini @@ -7,7 +7,7 @@ date.timezone=${PHP_DATE_TIMEZONE} [opcache] opcache.enable=1 opcache.enable_cli=0 -opcache.memory_consumption=512 +opcache.memory_consumption=256 opcache.max_accelerated_files=32531 opcache.interned_strings_buffer=8 opcache.validate_timestamps=0 diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index ea5726575b1..e5baff9215c 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -5,7 +5,7 @@ on: jobs: docker-compose: - name: Execute Tests on Docker Compose + name: Excute Tests on Docker Compose runs-on: ubuntu-latest env: COMPOSE_FILE: docker-compose.test.yml @@ -18,7 +18,7 @@ jobs: run: docker-compose run ci docker: - name: Execute Tests on Docker Containers + name: Excute Tests on Docker Containers runs-on: ubuntu-latest steps: - @@ -48,7 +48,6 @@ jobs: -e DATABASE_URL="mysql://root@mysql/sylius_test" \ -e APP_ENV="test" \ -e PHP_DATE_TIMEZONE="Europe/Warsaw" \ - -e MESSENGER_TRANSPORT_DSN="sync://" \ --net sylius_network \ --entrypoint="" \ -p 80:80/tcp \ diff --git a/Makefile b/Makefile index aed8695367b..c7dd6f5fd69 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,6 @@ init: ci: composer install --no-interaction --no-scripts - composer dump-env ${APP_ENV} bin/console sylius:install --no-interaction bin/console sylius:fixtures:load default --no-interaction bin/console cache:warmup @@ -15,9 +14,9 @@ ci: yarn build vendor/bin/phpunit vendor/bin/phpspec run --ansi --no-interaction -f dot - vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="~@javascript&&@cli&&~@todo" || vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="~@javascript&&@cli&&~@todo" --rerun # CLI Behat - vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@cli&&~@todo" || vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@cli&&~@todo" --rerun # NON JS Behat - #vendor/bin/behat --strict --no-interaction -vvv -f progress --tags="@javascript&&~@cli&&~@todo" # JS Behat + vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@javascript&&@cli&&~@todo" # CLI Behat + vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="~@javascript&&~@cli&&~@todo" # NON JS Behat + #vendor/bin/behat --colors --strict --no-interaction -vvv -f progress --tags="@javascript&&~@cli&&~@todo" # JS Behat unit: vendor/bin/phpunit diff --git a/docker-compose.test.yml b/docker-compose.test.yml index f63b56b210b..97c284bf1fd 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -3,11 +3,9 @@ services: image: sylius/standard:1.11-traditional entrypoint: ["make", "ci"] environment: - APP_ENV: "test_cached" + APP_ENV: "test" DATABASE_URL: "mysql://root:mysql@mysql/sylius_test" PHP_DATE_TIMEZONE: "Europe/Warsaw" - MESSENGER_TRANSPORT_DSN: "sync://" - KERNEL_CLASS: "App\Kernel" volumes: - ./:/app:delegated - ./.docker/test/php.ini:/etc/php/8.0/fpm/php.ini:delegated