Skip to content

Commit

Permalink
version changes
Browse files Browse the repository at this point in the history
  • Loading branch information
LaravelFreelancerNL committed Nov 27, 2023
1 parent 62da529 commit 740b033
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
15 changes: 13 additions & 2 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="true" beStrictAboutTestsThatDoNotTestAnything="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.2/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
backupGlobals="false"
bootstrap="vendor/autoload.php"
colors="true"
processIsolation="false"
stopOnFailure="true"
beStrictAboutTestsThatDoNotTestAnything="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false"
>
<testsuites>
<testsuite name="all">
<directory suffix=".php">tests/</directory>
Expand All @@ -18,7 +29,7 @@
</coverage>
<php>
<env name="APP_KEY" value="AckfSECXIvnK5r28GVIWUAxmbBSjTsmF"/>
<env name="ARANGODB_VERSION" value="3.8"/>
<env name="ARANGODB_VERSION" value="3.10"/>
<env name="RAY_ENABLED" value="(true)"/>
<env name="SEND_CACHE_TO_RAY" value="(false)"/>
<env name="SEND_DUMPS_TO_RAY" value="(true)"/>
Expand Down
2 changes: 2 additions & 0 deletions testbench.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
env:
- DB_CONNECTION="arangodb"
- DB_ENDPOINT="http://localhost:8529"
- DB_DATABASE="aranguent__test"
- DB_USERNAME="root"
- DB_PASSWORD=

Expand Down
2 changes: 1 addition & 1 deletion tests/Setup/TestConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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');
});
}
}

0 comments on commit 740b033

Please sign in to comment.