Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
16 changes: 6 additions & 10 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
18 changes: 9 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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": {
Expand Down