diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index ec94779e..af1949bc 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: false matrix: os: [ubuntu-latest, windows-latest] php: [8.2, 8.1, 8.3] - laravel: [10.*, 11.*] + laravel: ['10.*', '11.*', '12.*'] stability: [prefer-lowest, prefer-stable] include: - laravel: 10.* @@ -30,6 +33,8 @@ jobs: exclude: - laravel: 11.* php: 8.1 + - laravel: 12.* + php: 8.1 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} @@ -66,9 +71,9 @@ jobs: run: vendor/bin/pest --version - name: Execute tests on Linux - if: matrix.os == 'ubuntu-latest' + if: "matrix.os == 'ubuntu-latest'" run: Xvfb :99 & DISPLAY=:99 vendor/bin/pest - name: Execute tests on Windows - if: matrix.os == 'windows-latest' + if: "matrix.os == 'windows-latest'" run: vendor/bin/pest diff --git a/composer.json b/composer.json index be4cf679..8644174e 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,7 @@ ], "require": { "php": "^8.1", - "illuminate/contracts": "^10.0|^11.0", + "illuminate/contracts": "^10.0|^11.0|^12.0", "laravel/prompts": "^0.1.1|^0.2|^0.3", "nativephp/laravel": "^1.0@beta", "nativephp/php-bin": "^0.5.1", @@ -42,13 +42,13 @@ "laravel/pint": "^1.0", "nunomaduro/collision": "^7.9", "nunomaduro/larastan": "^2.0.1", - "orchestra/testbench": "^8.18", - "pestphp/pest": "^2.7", - "pestphp/pest-plugin-arch": "^2.0", - "pestphp/pest-plugin-laravel": "^2.0", + "orchestra/testbench": "^8.18|^10.0", + "pestphp/pest": "^2.7|^3.7", + "pestphp/pest-plugin-arch": "^2.0|^3.0", + "pestphp/pest-plugin-laravel": "^2.0|^3.1", "phpstan/extension-installer": "^1.1", - "phpstan/phpstan-deprecation-rules": "^1.0", - "phpstan/phpstan-phpunit": "^1.0", + "phpstan/phpstan-deprecation-rules": "^1.0|^2.0", + "phpstan/phpstan-phpunit": "^1.0|^2.0", "spatie/laravel-ray": "^1.26" }, "autoload": {