diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f696e57..440b2db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,16 +15,16 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - arangodb: [3.10, 3.11] + arangodb: ['3.10', '3.11'] dependency-version: [prefer-lowest, prefer-stable] - php: [8.1, 8.2, 8.3] - laravel: [^10.0] + php: ['8.1', '8.2', '8.3'] + laravel: ['^10.0'] # exclude: -# - laravel: 11.* -# php: 8.1 +# - laravel: '^11.0' +# php: '8.1' include: - - laravel: ^10.0 - testbench: ^8.0 + - laravel: '^10.0' + testbench: '^8.0' name: QA L ${{ matrix.laravel }} / P ${{ matrix.php }} / A ${{ matrix.arangodb }} - ${{ matrix.dependency-version }} services: diff --git a/phpunit.xml b/phpunit.xml index 440e425..d7e1f59 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,5 +1,16 @@ - + tests/ @@ -18,7 +29,7 @@ - + diff --git a/testbench.yaml b/testbench.yaml index 01e7152..d3ce442 100644 --- a/testbench.yaml +++ b/testbench.yaml @@ -1,5 +1,7 @@ env: - DB_CONNECTION="arangodb" + - DB_ENDPOINT="http://localhost:8529" + - DB_DATABASE="aranguent__test" - DB_USERNAME="root" - DB_PASSWORD= diff --git a/tests/Setup/TestConfig.php b/tests/Setup/TestConfig.php index 563ba50..bc0cd6e 100644 --- a/tests/Setup/TestConfig.php +++ b/tests/Setup/TestConfig.php @@ -11,7 +11,6 @@ class TestConfig public static function set($app) { tap($app->make('config'), function (Repository $config) { - $config->set('database.default', 'arangodb'); $config->set('database.connections.arangodb', [ 'name' => 'arangodb', 'driver' => 'arangodb', @@ -20,6 +19,7 @@ public static function set($app) 'password' => env('DB_PASSWORD', null), 'database' => env('DB_DATABASE', 'aranguent__test'), ]); + $config->set('database.default', 'arangodb'); }); } }