Skip to content

Commit 9349fde

Browse files
authored
Merge pull request #20 from BinarCode/l12
6.1.0
2 parents c443da8 + b0c97b6 commit 9349fde

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

.github/workflows/phpstan.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,20 @@ jobs:
1111
name: phpstan
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515

1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: '8.2'
19+
php-version: '8.4'
2020
coverage: none
2121

2222
- name: Install composer dependencies
23-
uses: ramsey/composer-install@v1
23+
uses: ramsey/composer-install@v2
24+
25+
- name: Install PHPStan
26+
run: |
27+
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
2428
2529
- name: Run PHPStan
2630
run: ./vendor/bin/phpstan --error-format=github

.github/workflows/run-tests.yml

+6-10
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,20 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
os: [ubuntu-latest]
12-
php: [8.2]
13-
laravel: [11.*]
12+
php: [8.2, 8.3, 8.4]
13+
laravel: [11.*, 12.*]
1414
stability: [prefer-stable]
1515
include:
1616
- laravel: 11.*
1717
testbench: 9.*
18+
- laravel: 12.*
19+
testbench: 10.*
1820

1921
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2022

2123
steps:
2224
- name: Checkout code
23-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2426

2527
- name: Setup PHP
2628
uses: shivammathur/setup-php@v2
@@ -39,11 +41,5 @@ jobs:
3941
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
4042
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
4143
42-
- name: Clear Composer cache
43-
run: composer clear-cache
44-
45-
- name: Wait for a few seconds
46-
run: sleep 5
47-
4844
- name: Execute tests
49-
run: vendor/bin/phpunit
45+
run: vendor/bin/testbench package:test --parallel --no-coverage

composer.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^8.1|^8.2",
20-
"illuminate/contracts": "^11.0",
19+
"php": "^8.2|^8.3|^8.4",
20+
"illuminate/contracts": "^11.0|^12.0",
2121
"laravel/slack-notification-channel": "^3.2",
2222
"ext-json": "*"
2323
},
2424
"require-dev": {
25+
"brianium/paratest": "^7.0.6",
2526
"friendsofphp/php-cs-fixer": "^3.2",
26-
"laravel/sanctum": "^4.0",
27-
"orchestra/testbench": "^9.0",
28-
"phpunit/phpunit": "^10.0|^11.0",
29-
"symfony/stopwatch": "^4.4|^5.0",
30-
"nunomaduro/larastan": "^2.0",
31-
"phpstan/extension-installer": "^1.1"
27+
"laravel/sanctum": "^4.0|^5.0",
28+
"nunomaduro/collision": "^8.1",
29+
"orchestra/testbench": "^9.0|^10.0",
30+
"phpunit/phpunit": "^10.0|^11.0|^12.0",
31+
"symfony/stopwatch": "^4.4|^5.0|^6.0|^7.0"
3232
},
3333
"autoload": {
3434
"psr-4": {
@@ -46,7 +46,7 @@
4646
},
4747
"scripts": {
4848
"analyse": "vendor/bin/phpstan analyse",
49-
"test": "vendor/bin/phpunit --colors=always",
49+
"test": "vendor/bin/testbench package:test --parallel --no-coverage",
5050
"test-coverage": "vendor/bin/phpunit --coverage-html coverage"
5151
},
5252
"config": {

0 commit comments

Comments
 (0)