From b9565b05f32c92d343f272bc23477274e127de5f Mon Sep 17 00:00:00 2001 From: David Torras Date: Wed, 6 Nov 2024 16:27:09 +0000 Subject: [PATCH] update phpstan/larastan github action (#76) --- .github/workflows/phpstan.yml | 11 ++++++++++- composer.json | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 0fefb5e..cd5f405 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -5,6 +5,10 @@ on: paths: - '**.php' - 'phpstan.neon.dist' + pull_request: + paths: + - '**.php' + - 'phpstan.neon.dist' jobs: phpstan: @@ -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 diff --git a/composer.json b/composer.json index 0a9135e..298be2d 100644 --- a/composer.json +++ b/composer.json @@ -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",