Skip to content

Commit

Permalink
Modernize PHPStan workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dktapps committed May 31, 2023
1 parent 04444e3 commit a2f36e8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ jobs:
restore-keys: "php-${{ matrix.php }}-composer-"

- name: Install PHPStan Composer dependencies
run: COMPOSER=phpstan-composer.json composer install --prefer-dist --no-interaction
working-directory: phpstan
run: composer install --prefer-dist --no-interaction

- name: Run PHPStan
working-directory: phpstan
run: vendor/bin/phpstan analyze
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.idea/
*.phar
/vendor
/phpstan-composer.lock
/phpstan.neon
/vendor/
/phpstan/vendor
/phpstan/composer.lock
/phpstan/phpstan.neon
6 changes: 3 additions & 3 deletions phpstan-composer.json → phpstan/composer.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "pocketmine/phpstan-plugin-config",
"require": {
"phpstan/phpstan": "1.2.0",
"pocketmine/pocketmine-mp": "^4.0.0",
"phpstan/phpstan": "^1.10.0",
"pocketmine/pocketmine-mp": "4.0.0",
"phpstan/phpstan-strict-rules": "^1.0.0",
"phpstan/extension-installer": "^1.0"
},
"autoload": {
"psr-4": {
"DevTools\\": "./src"
"DevTools\\": "../src"
}
},
"config": {
Expand Down
4 changes: 2 additions & 2 deletions phpstan.neon.dist → phpstan/phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
parameters:
level: 6
paths:
- src
- ../src
scanFiles:
- src/ConsoleScript.php
- ../src/ConsoleScript.php

0 comments on commit a2f36e8

Please sign in to comment.