Skip to content

Commit

Permalink
adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
solverat committed Jan 6, 2022
1 parent 91e8517 commit 69838fd
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 45 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/codeception.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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
Expand Down Expand Up @@ -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: |
Expand Down
18 changes: 3 additions & 15 deletions .github/workflows/ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
18 changes: 3 additions & 15 deletions .github/workflows/php-stan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions tests/_etc/config/app/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 69838fd

Please sign in to comment.