diff --git a/.github/workflows/formats.yml b/.github/workflows/formats.yml index dd0c824..c4100ca 100644 --- a/.github/workflows/formats.yml +++ b/.github/workflows/formats.yml @@ -11,7 +11,7 @@ jobs: matrix: os: [ubuntu-latest] php: [8.2] - dependency-version: [prefer-lowest, prefer-stable] + dependency-version: [prefer-stable] name: Formats P${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6a24087..8b0c196 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,11 +5,12 @@ on: ['push', 'pull_request'] jobs: ci: runs-on: ${{ matrix.os }} + strategy: fail-fast: true matrix: - os: [ubuntu-latest, macos-latest] - php: [8.1, 8.2] + os: [ubuntu-latest] + php: [8.1, 8.2, 8.3, 8.4] symfony: [5.4.*, 6.3.*, 6.4.*, 7.0.*] dependency-version: [prefer-lowest, prefer-stable] include: diff --git a/composer.json b/composer.json index d0b04c9..03b85fe 100644 --- a/composer.json +++ b/composer.json @@ -16,20 +16,20 @@ ], "require": { "php": "^8.1.0", - "nyholm/psr7": "^1.8.1", - "openai-php/client": "^0.10", + "nyholm/psr7": "^1.8.2", + "openai-php/client": "^0.10.2", "psr/http-client": "^1.0.3", - "psr/http-factory": "^1.0.2", - "symfony/config": "^5.4|^6.3|^7.0", - "symfony/dependency-injection": "^5.4|^6.3|^7.0.1", - "symfony/http-client": "^5.4|^6.3|^7.0", - "symfony/http-kernel": "^5.4|^6.3|^7.0.1" + "psr/http-factory": "^1.1.0", + "symfony/config": "^5.4|^6.3|^7.1.1", + "symfony/dependency-injection": "^5.4|^6.3|^7.1.5", + "symfony/http-client": "^5.4|^6.3|^7.1.5", + "symfony/http-kernel": "^5.4|^6.3|^7.1.5" }, "require-dev": { - "laravel/pint": "^1.16.1", - "phpstan/phpstan": "^1.10.47", + "laravel/pint": "^1.18.1", + "phpstan/phpstan": "^1.12.6", "rector/rector": "^0.14.8", - "symfony/phpunit-bridge": "^5.4|^6.3|^7.0.1" + "symfony/phpunit-bridge": "^5.4|^6.3|^7.1.4" }, "autoload": { "psr-4": { diff --git a/tests/DependencyInjection/OpenAIExtensionTest.php b/tests/DependencyInjection/OpenAIExtensionTest.php index 54f225c..1138a03 100644 --- a/tests/DependencyInjection/OpenAIExtensionTest.php +++ b/tests/DependencyInjection/OpenAIExtensionTest.php @@ -30,10 +30,10 @@ public function testService(): void ]); }); - $container = new ContainerBuilder(); + $container = new ContainerBuilder; $container->set('http_client', $httpClient); - $extension = new OpenAIExtension(); + $extension = new OpenAIExtension; $extension->load([ 'openai' => [ 'api_key' => 'pk-123456789',