Skip to content

Commit

Permalink
Undo workflow test [SLE-192]
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelgfeller committed Dec 19, 2023
1 parent f639a95 commit 59b8dda
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions config/env/env.github.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';

0 comments on commit 59b8dda

Please sign in to comment.