diff --git a/.github/workflows/codeception.yml b/.github/workflows/codeception.yml index dbf8c049..5ea9780b 100644 --- a/.github/workflows/codeception.yml +++ b/.github/workflows/codeception.yml @@ -18,7 +18,7 @@ jobs: PIMCORE_CODECEPTION_VERSION: "2.0" APP_ENV: test - PIMCORE_TEST_DB_DSN: "mysql://root:root@localhost/dachcom_bundle_test" + PIMCORE_TEST_DB_DSN: "mysql://root:root@127.0.0.1:3306/dachcom_bundle_test" PIMCORE_TEST_URL: "http://localhost" PIMCORE_CLASS_DIRECTORY: "${{ github.workspace }}/lib/test-bundle/tests/_output/var/classes/DataObject" @@ -28,14 +28,11 @@ jobs: WEBDRIVER_HOST: localhost WEBDRIVER_URL: "http://localhost:8080/" - MYSQL_ROOT_PASSWORD: root - MYSQL_DATABASE: dachcom_bundle_test services: mysql: image: mysql:8.0 env: MYSQL_ROOT_PASSWORD: root - MYSQL_DATABASE: dachcom_bundle_test ports: - 3306 options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 @@ -86,19 +83,10 @@ jobs: - name: Check PHP Version run: php -v - - name: Start MySql Service - run: | - sudo /etc/init.d/mysql start - - - name: Verify MySql Connection - run: | - sudo apt-get update - sudo apt-get install -y mysql-client-8.0 - mysql -uroot -h127.0.0.1 -proot -e "SHOW DATABASES" - - name: Setup MySql run: | - mysql -uroot -h127.0.0.1 -proot -e "CREATE DATABASE dachcom_bundle_test CHARSET=utf8mb4;" + sudo systemctl start mysql + mysql -uroot -proot -h127.0.0.1 -e "CREATE DATABASE dachcom_bundle_test CHARSET=utf8mb4;" - name: Setup Chromium run: | diff --git a/.github/workflows/ecs.yml b/.github/workflows/ecs.yml index 0e1e1b3e..5287a708 100644 --- a/.github/workflows/ecs.yml +++ b/.github/workflows/ecs.yml @@ -18,7 +18,7 @@ jobs: PIMCORE_CODECEPTION_VERSION: "2.0" APP_ENV: test - PIMCORE_TEST_DB_DSN: "mysql://root:root@localhost/dachcom_bundle_test" + PIMCORE_TEST_DB_DSN: "mysql://root:root@127.0.0.1:3306/dachcom_bundle_test" PIMCORE_TEST_URL: "http://localhost" SYMFONY_DEPRECATIONS_HELPER: "weak" @@ -27,14 +27,11 @@ jobs: WEBDRIVER_HOST: localhost WEBDRIVER_URL: "http://localhost:8080/" - MYSQL_ROOT_PASSWORD: root - MYSQL_DATABASE: dachcom_bundle_test services: mysql: image: mysql:8.0 env: MYSQL_ROOT_PASSWORD: root - MYSQL_DATABASE: dachcom_bundle_test ports: - 3306 options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 @@ -83,19 +80,10 @@ jobs: - name: Check PHP Version run: php -v - - name: Start MySql Service - run: | - sudo /etc/init.d/mysql start - - - name: Verify MySql Connection - run: | - sudo apt-get update - sudo apt-get install -y mysql-client-8.0 - mysql -uroot -h127.0.0.1 -proot -e "SHOW DATABASES" - - name: Setup MySql run: | - mysql -uroot -h127.0.0.1 -proot -e "CREATE DATABASE dachcom_bundle_test CHARSET=utf8mb4;" + sudo systemctl start mysql + mysql -uroot -proot -h127.0.0.1 -e "CREATE DATABASE dachcom_bundle_test CHARSET=utf8mb4;" - name: Get Composer Cache Directory id: composer-cache diff --git a/.github/workflows/php-stan.yml b/.github/workflows/php-stan.yml index 88587b6a..1fff8cb3 100644 --- a/.github/workflows/php-stan.yml +++ b/.github/workflows/php-stan.yml @@ -18,7 +18,7 @@ jobs: PIMCORE_CODECEPTION_VERSION: "2.0" APP_ENV: test - PIMCORE_TEST_DB_DSN: "mysql://root:root@localhost/dachcom_bundle_test" + PIMCORE_TEST_DB_DSN: "mysql://root:root@127.0.0.1:3306/dachcom_bundle_test" PIMCORE_TEST_URL: "http://localhost" SYMFONY_DEPRECATIONS_HELPER: "weak" @@ -27,14 +27,11 @@ jobs: WEBDRIVER_HOST: localhost WEBDRIVER_URL: "http://localhost:8080/" - MYSQL_ROOT_PASSWORD: root - MYSQL_DATABASE: dachcom_bundle_test services: mysql: image: mysql:8.0 env: MYSQL_ROOT_PASSWORD: root - MYSQL_DATABASE: dachcom_bundle_test ports: - 3306 options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 @@ -83,19 +80,10 @@ jobs: - name: Check PHP Version run: php -v - - name: Start MySql Service - run: | - sudo /etc/init.d/mysql start - - - name: Verify MySql Connection - run: | - sudo apt-get update - sudo apt-get install -y mysql-client-8.0 - mysql -uroot -h127.0.0.1 -proot -e "SHOW DATABASES" - - name: Setup MySql run: | - mysql -uroot -h127.0.0.1 -proot -e "CREATE DATABASE dachcom_bundle_test CHARSET=utf8mb4;" + sudo systemctl start mysql + mysql -uroot -proot -h127.0.0.1 -e "CREATE DATABASE dachcom_bundle_test CHARSET=utf8mb4;" - name: Get Composer Cache Directory id: composer-cache diff --git a/tests/_etc/config/app/config.yml b/tests/_etc/config/app/config.yml index 0a6240c0..54742905 100755 --- a/tests/_etc/config/app/config.yml +++ b/tests/_etc/config/app/config.yml @@ -19,6 +19,11 @@ doctrine: bit: boolean framework: + + # @see https://github.com/pimcore/pimcore/issues/11042 + session: + storage_id: session.storage.native + profiler: enabled: true collect: false