diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index e0497ae..4b5f666 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -2,19 +2,22 @@ name: run-tests on: push: - branches: [main] + branches: + - main pull_request: - branches: [main] + branches: + - main jobs: test: runs-on: ${{ matrix.os }} + strategy: fail-fast: true matrix: os: [ubuntu-latest] php: [8.2, 8.1, 8.0, 7.4] - laravel: [10.*, 9.*, 8.*, 7.*] + laravel: ['7.*', '8.*', '9.*', '10.*', '11.*'] stability: [prefer-lowest, prefer-stable] include: - laravel: 10.* @@ -25,6 +28,8 @@ jobs: testbench: ^6.23 - laravel: 7.* testbench: ^5.20 + - laravel: 11.* + testbench: 9.* exclude: - php: 7.4 laravel: 10.* @@ -36,6 +41,12 @@ jobs: laravel: 7.* - php: 8.2 laravel: 7.* + - laravel: 11.* + php: 8.1 + - laravel: 11.* + php: 8.0 + - laravel: 11.* + php: 7.4 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} @@ -54,9 +65,11 @@ jobs: run: | echo "::add-matcher::${{ runner.tool_cache }}/php.json" echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" + - name: Install dependencies run: | composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.65" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update composer update --${{ matrix.stability }} --prefer-dist --no-interaction + - name: Execute tests run: vendor/bin/phpunit diff --git a/composer.json b/composer.json index 7faddf9..ced55cc 100644 --- a/composer.json +++ b/composer.json @@ -11,11 +11,11 @@ ], "require": { "php": "^7.4|^8.0", - "laravel/framework": "~5.8.0|^6.0|^7.0|^8.0|^9.0|^10.0", + "laravel/framework": "~5.8.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0", "league/glide": "^1.5|^1.6|^2.0" }, "require-dev": { - "orchestra/testbench": "^5.20|^6.13|^7.0|^8.0" + "orchestra/testbench": "^5.20|^6.13|^7.0|^8.0|^9.0" }, "autoload": { "psr-4": {