diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 58fd68a..bb90ec5 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -13,12 +13,9 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest] - php: [7.4, 8.0] - laravel: [8.*] + php: [8.0, 8.1] + laravel: ['^9.0'] stability: [prefer-lowest, prefer-stable] - include: - - laravel: 8.* - testbench: ^6.6 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} @@ -45,7 +42,7 @@ jobs: - name: Install dependencies run: | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update + composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update composer update --${{ matrix.stability }} --prefer-dist --no-interaction - name: Execute tests diff --git a/composer.json b/composer.json index 6711b45..03bcfac 100644 --- a/composer.json +++ b/composer.json @@ -16,17 +16,17 @@ } ], "require": { - "php": "^7.4|^8.0", - "illuminate/contracts": "^8.37", - "illuminate/support": "^8.37", - "illuminate/http": "^8.37", - "symfony/process": "^5.1.4" + "php": "^8.0", + "illuminate/contracts": "^8.37|^9.0", + "illuminate/support": "^8.37|^9.0", + "illuminate/http": "^8.37|^9.0", + "symfony/process": "^5.1.4|^6.0" }, "require-dev": { "brianium/paratest": "^6.2", - "nunomaduro/collision": "^5.3", - "orchestra/testbench": "^6.15", - "phpunit/phpunit": "^9.3", + "nunomaduro/collision": "^5.3|^6.1", + "orchestra/testbench": "^6.6|^7.0", + "phpunit/phpunit": "^9.5.10", "vimeo/psalm": "^4.8", "guzzlehttp/guzzle": "^7.0.1" }, diff --git a/tests/Unit/LocalLanguageRecognizerTest.php b/tests/Unit/LocalLanguageRecognizerTest.php index 38eace7..704d64b 100644 --- a/tests/Unit/LocalLanguageRecognizerTest.php +++ b/tests/Unit/LocalLanguageRecognizerTest.php @@ -49,7 +49,7 @@ public function it_can_recognize_a_string() $this->assertEquals([ "sco" => 1.0, - "eng" => 0.98693181818182, + "eng" => 0.9869318181818182, ], $languages); }