diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 59e9d7f..b56ff24 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -1,10 +1,6 @@ -name: run-tests +name: Tests -on: - push: - branches: [main] - pull_request: - branches: [main] +on: [push, pull_request] jobs: test: @@ -13,12 +9,12 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest, windows-latest] - php: [8.0] - laravel: [8.*] + php: [8.0, 8.1] + laravel: [9.*] stability: [prefer-lowest, prefer-stable] include: - - laravel: 8.* - testbench: ^6.23 + - laravel: 9.* + testbench: 7.* name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} diff --git a/composer.json b/composer.json index 0d4a226..771a155 100644 --- a/composer.json +++ b/composer.json @@ -20,12 +20,12 @@ ], "require": { "php": "^8.0", - "spatie/laravel-package-tools": "^1.9.2", - "illuminate/contracts": "^8.73" + "spatie/laravel-package-tools": "^1.13.0", + "illuminate/contracts": "^8.0|^9.0" }, "require-dev": { - "nunomaduro/collision": "^5.10", - "orchestra/testbench": "^6.22", + "nunomaduro/collision": "^5.10|^6.0", + "orchestra/testbench": "^6.22|^7.0", "pestphp/pest": "^1.21", "pestphp/pest-plugin-laravel": "^1.1", "phpunit/phpunit": "^9.5", @@ -48,7 +48,10 @@ "test-coverage": "vendor/bin/pest --coverage" }, "config": { - "sort-packages": true + "sort-packages": true, + "allow-plugins": { + "pestphp/pest-plugin": true + } }, "extra": { "laravel": {