Skip to content

Commit 9e4c8b5

Browse files
committed
fix CI tests
1 parent 5d5870b commit 9e4c8b5

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ jobs:
6969
- name: Run PHPUnit
7070
run: |
7171
if [[ ${{ matrix.db-type }} == 'sqlite' ]]; then
72-
export db_dsn='sqlite:///testdb.sqlite3'
72+
export DB_URL=sqlite:///testdb.sqlite3
7373
fi
7474
if [[ ${{ matrix.db-type }} == 'mysql' ]]; then
75-
export db_dsn='mysql://root:root@127.0.0.1/cakephp'
75+
export DB_URL=mysql://root:root@127.0.0.1/cakephp
7676
fi
7777
if [[ ${{ matrix.db-type }} == 'pgsql' ]]; then
78-
export db_dsn='postgres://postgres:postgres@127.0.0.1/postgres'
78+
export DB_URL=postgres://postgres:postgres@127.0.0.1/postgres
7979
fi
8080
if [[ ${{ matrix.php-version }} == '8.2' ]]; then
8181
vendor/bin/phpunit --coverage-clover=coverage.xml

tests/bootstrap.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@
1616
chdir($root);
1717
require $root . '/vendor/cakephp/cakephp/tests/bootstrap.php';
1818

19+
// See setUp() method inside tests
1920
define('PLUGIN_TESTS', $root . DS . 'tests' . DS);

0 commit comments

Comments
 (0)