Skip to content

Commit

Permalink
update phpstan/larastan github action (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
dtorras authored Nov 6, 2024
1 parent 2c3e5b7 commit b9565b0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
paths:
- '**.php'
- 'phpstan.neon.dist'
pull_request:
paths:
- '**.php'
- 'phpstan.neon.dist'

jobs:
phpstan:
Expand All @@ -16,11 +20,16 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: 8.3
coverage: none

- name: Install composer dependencies
uses: ramsey/composer-install@v3

- name: Install larastan
run: |
composer require "larastan/larastan" --no-interaction --no-update
composer update --prefer-dist --no-interaction
- name: Run PHPStan
run: ./vendor/bin/phpstan --error-format=github
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"require-dev": {
"laravel/pint": "^1.6",
"nunomaduro/collision": "^5.10|^6.0|^8.0",
"nunomaduro/larastan": "^1.0|^2.0",
"larastan/larastan": "^1.0|^2.0",
"orchestra/testbench": "^6.23|^7.0|^8.0|^9.0",
"pestphp/pest": "^1.21|^2.34",
"pestphp/pest-plugin-laravel": "^1.1|^2.3",
Expand Down

0 comments on commit b9565b0

Please sign in to comment.