diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0a02d0f6..56983090 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: mysql: image: mysql:8.0.23 env: - MYSQL_ROOT_PASSWORD: rootroot + MYSQL_ROOT_PASSWORD: root MYSQL_ALLOW_EMPTY_PASSWORD: true MYSQL_DATABASE: test ports: @@ -59,13 +59,13 @@ jobs: run: sudo systemctl start mysql - name: Check MySQL variables - run: mysql -uroot -prootroot -e "SHOW VARIABLES LIKE 'version%';" + run: mysql -uroot -proot -e "SHOW VARIABLES LIKE 'version%';" - name: Set MySQL timezone to swiss time - run: mysql -uroot -prootroot -e "SET GLOBAL time_zone = '+01:00';" + run: mysql -uroot -proot -e "SET GLOBAL time_zone = '+01:00';" - name: Create database - run: mysql -uroot -prootroot -e 'CREATE DATABASE IF NOT EXISTS ${{ matrix.test-database }} CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;' + run: mysql -uroot -proot -e 'CREATE DATABASE IF NOT EXISTS ${{ matrix.test-database }} CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;' - name: Validate composer.json and composer.lock run: composer validate @@ -77,7 +77,7 @@ jobs: run: composer migrate-prod - name: Show test db tables - run: mysql -uroot -prootroot -D ${{ matrix.test-database }} -e "SHOW TABLES;" + run: mysql -uroot -proot -D ${{ matrix.test-database }} -e "SHOW TABLES;" - name: Run test suite run: composer test:coverage diff --git a/config/env/env.github.php b/config/env/env.github.php index 060fccaf..75afea99 100644 --- a/config/env/env.github.php +++ b/config/env/env.github.php @@ -8,7 +8,7 @@ require __DIR__ . '/env.test.php'; // Database -// $settings['db']['host'] = '127.0.0.1'; -// $settings['db']['database'] = 'slim_example_project_test'; -// $settings['db']['username'] = 'root'; -$settings['db']['password'] = 'rootroot'; +$settings['db']['host'] = '127.0.0.1'; +$settings['db']['database'] = 'slim_example_project_test'; +$settings['db']['username'] = 'root'; +$settings['db']['password'] = 'root';