Skip to content

Commit b0c97b6

Browse files
committed
fix: wip
1 parent 8003a3c commit b0c97b6

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

.github/workflows/phpstan.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,9 @@ jobs:
2222
- name: Install composer dependencies
2323
uses: ramsey/composer-install@v2
2424

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
28+
2529
- name: Run PHPStan
2630
run: ./vendor/bin/phpstan --error-format=github

.github/workflows/run-tests.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,5 @@ jobs:
4141
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
4242
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
4343
44-
- name: Clear Composer cache
45-
run: composer clear-cache
46-
47-
- name: Wait for a few seconds
48-
run: sleep 5
49-
5044
- name: Execute tests
51-
run: vendor/bin/phpunit
45+
run: vendor/bin/testbench package:test --parallel --no-coverage

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@
1616
}
1717
],
1818
"require": {
19-
"php": "^8.1|^8.2|^8.3|^8.4",
19+
"php": "^8.2|^8.3|^8.4",
2020
"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",
2627
"laravel/sanctum": "^4.0|^5.0",
28+
"nunomaduro/collision": "^8.1",
2729
"orchestra/testbench": "^9.0|^10.0",
28-
"phpunit/phpunit": "^10.0|^11.0",
29-
"symfony/stopwatch": "^4.4|^5.0|^6.0|^7.0",
30-
"nunomaduro/larastan": "^2.0",
31-
"phpstan/extension-installer": "^1.1"
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)