diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index cbaaeee..04e71a1 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -11,16 +11,20 @@ jobs: name: phpstan runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.2' + php-version: '8.4' coverage: none - name: Install composer dependencies - uses: ramsey/composer-install@v1 + uses: ramsey/composer-install@v2 + + - name: Install PHPStan + run: | + composer require --dev nunomaduro/larastan:^2.9.9 phpstan/extension-installer:^1.1 phpstan/phpstan-deprecation-rules:^1.0|^2.0 phpstan/phpstan-phpunit:^1.0|^2.0 --no-interaction - name: Run PHPStan run: ./vendor/bin/phpstan --error-format=github diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 0716515..92072ce 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -9,18 +9,20 @@ jobs: fail-fast: true matrix: os: [ubuntu-latest] - php: [8.2] - laravel: [11.*] + php: [8.2, 8.3, 8.4] + laravel: [11.*, 12.*] stability: [prefer-stable] include: - laravel: 11.* testbench: 9.* + - laravel: 12.* + testbench: 10.* name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 @@ -39,11 +41,5 @@ jobs: composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update composer update --${{ matrix.stability }} --prefer-dist --no-interaction - - name: Clear Composer cache - run: composer clear-cache - - - name: Wait for a few seconds - run: sleep 5 - - name: Execute tests - run: vendor/bin/phpunit + run: vendor/bin/testbench package:test --parallel --no-coverage diff --git a/composer.json b/composer.json index b543b82..def0ab4 100644 --- a/composer.json +++ b/composer.json @@ -16,19 +16,19 @@ } ], "require": { - "php": "^8.1|^8.2", - "illuminate/contracts": "^11.0", + "php": "^8.2|^8.3|^8.4", + "illuminate/contracts": "^11.0|^12.0", "laravel/slack-notification-channel": "^3.2", "ext-json": "*" }, "require-dev": { + "brianium/paratest": "^7.0.6", "friendsofphp/php-cs-fixer": "^3.2", - "laravel/sanctum": "^4.0", - "orchestra/testbench": "^9.0", - "phpunit/phpunit": "^10.0|^11.0", - "symfony/stopwatch": "^4.4|^5.0", - "nunomaduro/larastan": "^2.0", - "phpstan/extension-installer": "^1.1" + "laravel/sanctum": "^4.0|^5.0", + "nunomaduro/collision": "^8.1", + "orchestra/testbench": "^9.0|^10.0", + "phpunit/phpunit": "^10.0|^11.0|^12.0", + "symfony/stopwatch": "^4.4|^5.0|^6.0|^7.0" }, "autoload": { "psr-4": { @@ -46,7 +46,7 @@ }, "scripts": { "analyse": "vendor/bin/phpstan analyse", - "test": "vendor/bin/phpunit --colors=always", + "test": "vendor/bin/testbench package:test --parallel --no-coverage", "test-coverage": "vendor/bin/phpunit --coverage-html coverage" }, "config": {